use of org.nextprot.api.core.domain.annotation.Annotation in project nextprot-api by calipho-sib.
the class AnnotationTest method testNoEvidence.
/*
* this case seems to occur (in dev at least)
*/
@Test
public void testNoEvidence() {
Annotation a = new Annotation();
List<AnnotationEvidence> evidences = new ArrayList<>();
a.setEvidences(evidences);
Assert.assertTrue(!a.isExpressionLevelDetected().isPresent());
}
use of org.nextprot.api.core.domain.annotation.Annotation in project nextprot-api by calipho-sib.
the class AnnotationTest method testTwoHigh.
@Test
public void testTwoHigh() {
Annotation a = new Annotation();
List<AnnotationEvidence> evidences = new ArrayList<>();
evidences.add(buildEvidence("high"));
evidences.add(buildEvidence("high"));
a.setEvidences(evidences);
Assert.assertTrue(a.isExpressionLevelDetected().isPresent());
Assert.assertTrue(a.isExpressionLevelDetected().get());
}
use of org.nextprot.api.core.domain.annotation.Annotation in project nextprot-api by calipho-sib.
the class AnnotationTest method testHighAndLow.
@Test
public void testHighAndLow() {
Annotation a = new Annotation();
List<AnnotationEvidence> evidences = new ArrayList<>();
evidences.add(buildEvidence("high"));
evidences.add(buildEvidence("low"));
a.setEvidences(evidences);
Assert.assertTrue(a.isExpressionLevelDetected().isPresent());
Assert.assertTrue(a.isExpressionLevelDetected().get());
}
use of org.nextprot.api.core.domain.annotation.Annotation in project nextprot-api by calipho-sib.
the class AnnotationTest method testEmptyExpressionLevel.
@Test
public void testEmptyExpressionLevel() {
Annotation a = new Annotation();
List<AnnotationEvidence> evidences = new ArrayList<>();
evidences.add(buildEvidence(""));
a.setEvidences(evidences);
Assert.assertTrue(a.isExpressionLevelDetected().isPresent());
Assert.assertTrue(!a.isExpressionLevelDetected().get());
}
use of org.nextprot.api.core.domain.annotation.Annotation in project nextprot-api by calipho-sib.
the class AnnotationTest method testOneHigh.
@Test
public void testOneHigh() {
Annotation a = new Annotation();
List<AnnotationEvidence> evidences = new ArrayList<>();
evidences.add(buildEvidence("high"));
a.setEvidences(evidences);
Assert.assertTrue(a.isExpressionLevelDetected().isPresent());
}
Aggregations