Skip to content

refactor: remove generics for ResourceList and Storage #1339

refactor: remove generics for ResourceList and Storage

refactor: remove generics for ResourceList and Storage #1339

GitHub Actions / JUnit Test Report failed Mar 3, 2024 in 0s

431 tests run, 430 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 71 in refinedstorage2-network/src/test/java/com/refinedmods/refinedstorage2/api/network/impl/node/exporter/RoundRobinExporterNetworkNodeTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

RoundRobinExporterNetworkNodeTest.shouldTransfer(StorageChannel)

org.opentest4j.AssertionFailedError: 
Expecting actual:
  [ResourceAmount{resource=B, amount=95}, ResourceAmount{resource=A, amount=95}]
to contain exactly (and in same order):
  [ResourceAmount{resource=A, amount=95}, ResourceAmount{resource=B, amount=95}]
but there were differences at these indexes:
  - element at index 0: expected "ResourceAmount{resource=A, amount=95}" but was "ResourceAmount{resource=B, amount=95}"
  - element at index 1: expected "ResourceAmount{resource=B, amount=95}" but was "ResourceAmount{resource=A, amount=95}"
Raw output
org.opentest4j.AssertionFailedError: 
Expecting actual:
  [ResourceAmount{resource=B, amount=95}, ResourceAmount{resource=A, amount=95}]
to contain exactly (and in same order):
  [ResourceAmount{resource=A, amount=95}, ResourceAmount{resource=B, amount=95}]
but there were differences at these indexes:
  - element at index 0: expected "ResourceAmount{resource=A, amount=95}" but was "ResourceAmount{resource=B, amount=95}"
  - element at index 1: expected "ResourceAmount{resource=B, amount=95}" but was "ResourceAmount{resource=A, amount=95}"

	at [email protected]/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at [email protected]/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at [email protected]/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at [email protected]/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at app//com.refinedmods.refinedstorage2.api.network.impl.node.exporter.RoundRobinExporterNetworkNodeTest.shouldTransfer(RoundRobinExporterNetworkNodeTest.java:71)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:568)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)