Skip to content

Commit

Permalink
Updates to match API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler MacEachern committed Aug 18, 2017
1 parent 782288d commit 78d33af
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions test/com/valkryst/VTerminal/component/ScreenTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,6 @@ public void testAddComponent_withLayer() {
Assert.assertEquals(1, screen.totalComponents());
}

@Test
public void testAddComponent_withScreen() {
final Screen otherComponent = new Screen(0, 0, 2, 2);
screen.addComponent(otherComponent);

Assert.assertTrue(screen.containsComponent(otherComponent));
}

@Test
public void testAddComponent_withComponent() {
final Component otherComponent = new Component(0, 0, 2, 2);
Expand All @@ -366,15 +358,6 @@ public void testAddComponent_withComponent() {
Assert.assertTrue(screen.containsComponent(otherComponent));
}

@Test
public void testAddComponent_withScreenContainingMainScreen() {
final Screen otherComponent = new Screen(0, 0, 2, 2);
otherComponent.addComponent(screen);
screen.addComponent(otherComponent);

Assert.assertFalse(screen.containsComponent(otherComponent));
}

@Test
public void testAddComponent_addSameComponentTwice() {
final Layer otherComponent = new Layer(0, 0, 2, 2);
Expand All @@ -398,19 +381,6 @@ public void testRemoveComponent_withLayer() {
Assert.assertEquals(0, screen.totalComponents());
}

@Test
public void testRemoveComponent_withScreen() {
final Screen otherComponent = new Screen(0, 0, 2, 2);

screen.addComponent(otherComponent);
Assert.assertTrue(screen.containsComponent(otherComponent));
Assert.assertEquals(1, screen.totalComponents());

screen.removeComponent(otherComponent);
Assert.assertFalse(screen.containsComponent(otherComponent));
Assert.assertEquals(0, screen.totalComponents());
}

@Test
public void testRemoveComponent_withComponent() {
final Component otherComponent = new Component(0, 0, 2, 2);
Expand Down Expand Up @@ -441,13 +411,6 @@ public void testContainsComponent_withLayer() {
Assert.assertTrue(screen.containsComponent(otherComponent));
}

@Test
public void testContainsComponent_withScreen() {
final Screen otherComponent = new Screen(0, 0, 2, 2);
screen.addComponent(otherComponent);
Assert.assertTrue(screen.containsComponent(otherComponent));
}

@Test
public void testContainsComponent_withComponent() {
final Component otherComponent = new Component(0, 0, 2, 2);
Expand Down Expand Up @@ -488,25 +451,6 @@ public void testRecursiveContainsComponent_whereSelfContainsComponent() {
Assert.assertTrue(screen.recursiveContainsComponent(otherComponent));
}

@Test
public void testRecursiveContainsComponent_whereOtherComponentIsScreenThatContainsCallingScreen() {
final Screen otherComponent = new Screen(0, 0, 2, 2);
otherComponent.addComponent(screen);
screen.addComponent(otherComponent);
Assert.assertTrue(screen.recursiveContainsComponent(otherComponent));
}

@Test
public void testRecursiveContainsComponent_whereSubscreenContainsComponent() {
final Component otherComponent = new Component(0, 0, 2, 2);
final Screen otherScreen = new Screen(0, 0, 2, 2);
otherScreen.addComponent(otherComponent);

screen.addComponent(otherScreen);

Assert.assertTrue(screen.recursiveContainsComponent(otherComponent));
}

@Test
public void testRecursiveContainsComponent_withNonContainedComponent() {
final Component otherComponent = new Component(0, 0, 2, 2);
Expand Down

0 comments on commit 78d33af

Please sign in to comment.