Ejemplo n.º 1
0
 @Test
 public void
     contourContainsAnother_should_return_false_when_the_other_contour_is_not_entirely_shaded() {
   ContourRelations diagramContourRelations =
       new ContourRelations(getVennABCDiagramWithShadedBC());
   assertFalse(diagramContourRelations.contourContainsAnother("A", "B"));
 }
Ejemplo n.º 2
0
 @Test
 public void
     contourContainsAnother_should_return_false_when_the_only_unshaded_part_of_B_is_in_A_but_there_is_a_spider_in_B() {
   ContourRelations diagramContourRelations =
       new ContourRelations(getVennABCDiagramWithPartlyShadedBAndSpiderInZoneBC_A());
   assertFalse(diagramContourRelations.contourContainsAnother("A", "B"));
 }
Ejemplo n.º 3
0
 @Test
 public void contourContainsAnother_should_return_true_when_the_only_unshaded_part_of_B_is_in_A() {
   ContourRelations diagramContourRelations =
       new ContourRelations(getVennABCDiagramWithPartlyShadedB());
   assertTrue(diagramContourRelations.contourContainsAnother("A", "B"));
 }
Ejemplo n.º 4
0
 @Test
 public void contourContainsAnother_should_return_false_when_the_other_contour_is_not_shaded() {
   ContourRelations diagramContourRelations = new ContourRelations(diagramWithContoursAB);
   assertFalse(diagramContourRelations.contourContainsAnother("A", "B"));
 }
Ejemplo n.º 5
0
 @Test
 public void
     contourContainsAnother_should_return_true_when_the_other_contour_is_entirely_shaded() {
   ContourRelations diagramContourRelations = new ContourRelations(diagramWithShadedB);
   assertTrue(diagramContourRelations.contourContainsAnother("A", "B"));
 }
Ejemplo n.º 6
0
 @Test(expected = IllegalArgumentException.class)
 public void
     contourContainsAnother_should_throw_an_exception_when_the_contours_are_not_contained_in_the_diagram() {
   ContourRelations diagramContourRelations = new ContourRelations(diagramWithContoursAB);
   diagramContourRelations.contourContainsAnother("A", "C");
 }
Ejemplo n.º 7
0
 @Test
 public void contourContainsAnother_should_return_false_for_a_Venn_diagram() {
   ContourRelations contourRelations = new ContourRelations(diagramWithContoursAB);
   assertFalse(contourRelations.contourContainsAnother("A", "B"));
 }