Skip to content

Commit

Permalink
Remove now-unused tests in KeysAndLeversTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Nov 17, 2024
1 parent 99891dd commit cc16c1f
Showing 1 changed file with 0 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,6 @@ void getToSouthLeverAfterInsertingKey1()
assertEquals(this.helper.getToSouthLever, conditionalStep.getActiveStep());
}

@Test
void getToSouthLeverAfterInsertingKey2()
{
var mockedItems = new Item[]{
new Item(ItemID.MASTABA_KEY_30309, 1),
};
when(client.getVarbitValue(VARBIT_SOUTH_LEVER_STATE)).thenReturn(1);
var conditionalStep = this.init(new WorldPoint(3845, 4547, 0), mockedItems);

assertEquals(this.helper.getToSouthLever, conditionalStep.getActiveStep());
}

@Test
void pullSouthLeverAfterInsertingKey1()
{
Expand All @@ -205,18 +193,6 @@ void pullSouthLeverAfterInsertingKey1()
assertEquals(this.helper.pullSouthLever, conditionalStep.getActiveStep());
}

@Test
void pullSouthLeverAfterInsertingKey2()
{
var mockedItems = new Item[]{
new Item(ItemID.MASTABA_KEY_30309, 1),
};
when(client.getVarbitValue(VARBIT_SOUTH_LEVER_STATE)).thenReturn(1);
var conditionalStep = this.init(new WorldPoint(3893, 4552, 0), mockedItems);

assertEquals(this.helper.pullSouthLever, conditionalStep.getActiveStep());
}

@Test
void leaveSouthLeverAfterInsertingKey1()
{
Expand All @@ -229,18 +205,6 @@ void leaveSouthLeverAfterInsertingKey1()
assertEquals(this.helper.leaveSouthLever, conditionalStep.getActiveStep());
}

@Test
void leaveSouthLeverAfterInsertingKey2()
{
var mockedItems = new Item[]{
new Item(ItemID.MASTABA_KEY_30309, 1),
};
when(client.getVarbitValue(VARBIT_SOUTH_LEVER_STATE)).thenReturn(2);
var conditionalStep = this.init(new WorldPoint(3893, 4552, 0), mockedItems);

assertEquals(this.helper.leaveSouthLever, conditionalStep.getActiveStep());
}

@Test
void goToNorthLeverAfterPullingSouthLeverKey1()
{
Expand All @@ -253,18 +217,6 @@ void goToNorthLeverAfterPullingSouthLeverKey1()
assertEquals(this.helper.getToNorthLever, conditionalStep.getActiveStep());
}

@Test
void goToNorthLeverAfterPullingSouthLeverKey2()
{
var mockedItems = new Item[]{
new Item(ItemID.MASTABA_KEY_30309, 1),
};
when(client.getVarbitValue(VARBIT_SOUTH_LEVER_STATE)).thenReturn(2);
var conditionalStep = this.init(new WorldPoint(3845, 4547, 0), mockedItems);

assertEquals(this.helper.getToNorthLever, conditionalStep.getActiveStep());
}

@Test
void insertKeyIntoNorthLeverAfterPullingSouthLeverKey1()
{
Expand All @@ -277,18 +229,6 @@ void insertKeyIntoNorthLeverAfterPullingSouthLeverKey1()
assertEquals(this.helper.pullNorthLever, conditionalStep.getActiveStep());
}

@Test
void insertKeyIntoNorthLeverAfterPullingSouthLeverKey2()
{
var mockedItems = new Item[]{
new Item(ItemID.MASTABA_KEY_30309, 1),
};
when(client.getVarbitValue(VARBIT_SOUTH_LEVER_STATE)).thenReturn(2);
var conditionalStep = this.init(new WorldPoint(3894, 4597, 0), mockedItems);

assertEquals(this.helper.pullNorthLever, conditionalStep.getActiveStep());
}

@Test
void getToSouthLeverAfterInsertingKey()
{
Expand All @@ -312,16 +252,4 @@ void pullNorthLeverAfterPullingSouthLeverKey1()

assertEquals(this.helper.pullNorthLever, conditionalStep.getActiveStep());
}

@Test
void pullNorthLeverAfterPullingSouthLeverKey2()
{
var mockedItems = new Item[]{
};
when(client.getVarbitValue(VARBIT_SOUTH_LEVER_STATE)).thenReturn(2);
when(client.getVarbitValue(VARBIT_NORTH_LEVER_STATE)).thenReturn(1);
var conditionalStep = this.init(new WorldPoint(3894, 4597, 0), mockedItems);

assertEquals(this.helper.pullNorthLever, conditionalStep.getActiveStep());
}
}

0 comments on commit cc16c1f

Please sign in to comment.