moved the Confidence enumeration out of the Evidence object

Former-commit-id: 7224a6c342aabb37db2ed01f663870d194e54d65
This commit is contained in:
Jeremy Long
2014-01-17 20:11:06 -05:00
parent 59fefd5ad9
commit 269ae95318
8 changed files with 70 additions and 95 deletions

View File

@@ -250,9 +250,9 @@ public class DependencyTest {
Dependency instance = new Dependency();
String expResult = "used";
instance.getProductEvidence().addEvidence("used", "used", "used", Evidence.Confidence.HIGH);
instance.getProductEvidence().addEvidence("not", "not", "not", Evidence.Confidence.MEDIUM);
for (Evidence e : instance.getProductEvidence().iterator(Evidence.Confidence.HIGH)) {
instance.getProductEvidence().addEvidence("used", "used", "used", Confidence.HIGH);
instance.getProductEvidence().addEvidence("not", "not", "not", Confidence.MEDIUM);
for (Evidence e : instance.getProductEvidence().iterator(Confidence.HIGH)) {
String use = e.getValue();
}