Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Sep 4, 2023
1 parent eab670b commit ca3981b
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void bootstrap() {
public void doKeepExact_does_nothing_if_no_destination_tank_exists() {

// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

FluidStack water = new FluidStack(FluidRegistry.WATER, 1234);
Expand All @@ -53,7 +53,7 @@ public void doKeepExact_does_nothing_if_no_destination_tank_exists() {
@Test
public void doKeepExact_moves_one_fluid_into_an_empty_tank() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

FluidStack water = new FluidStack(FluidRegistry.WATER, 1234);
Expand All @@ -76,7 +76,7 @@ public void doKeepExact_moves_one_fluid_into_an_empty_tank() {
@Test
public void doKeepExact_moves_only_as_much_fluid_as_exists_in_the_source() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

IFluidHandler source =
Expand All @@ -95,7 +95,7 @@ public void doKeepExact_moves_only_as_much_fluid_as_exists_in_the_source() {

@Test
public void doKeepExact_moves_only_the_fluid_required_if_more_could_be_moved() {
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

IFluidHandler source =
Expand All @@ -118,7 +118,7 @@ public void doKeepExact_moves_only_the_fluid_required_if_more_could_be_moved() {
@Test
public void doKeepExact_moves_multiple_valid_fluids() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

IFluidHandler source =
Expand Down Expand Up @@ -155,7 +155,7 @@ public void doKeepExact_moves_multiple_valid_fluids() {
@Test
public void doKeepExact_respects_transfer_limit_with_one_fluid() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

// One output tank full of water
Expand All @@ -181,7 +181,7 @@ public void doKeepExact_respects_transfer_limit_with_one_fluid() {
@Test
public void doKeepExact_respects_transfer_limit_with_multiple_fluids() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

IFluidHandler source =
Expand Down Expand Up @@ -209,7 +209,7 @@ public void doKeepExact_respects_transfer_limit_with_multiple_fluids() {
@Test
public void doKeepExact_does_nothing_if_levels_are_already_correct_in_dest() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

IFluidHandler source =
Expand Down Expand Up @@ -237,7 +237,7 @@ public void doKeepExact_does_nothing_if_levels_are_already_correct_in_dest() {
@Test
public void doKeepExact_ignores_fluids_not_in_filter() {
// Create a regulator for testing with, and set it to "Keep Exact" mode
CoverFluidRegulator cfr = new CoverFluidRegulator(null, EnumFacing.UP, 0, 1000);
CoverFluidRegulator cfr = new CoverFluidRegulator(null, null, EnumFacing.UP, 0, 1000);
cfr.transferMode = TransferMode.KEEP_EXACT;

IFluidHandler source =
Expand Down

0 comments on commit ca3981b

Please sign in to comment.