You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In dev/core/test we have TestIdentityMap in the Apache commons test package. This test has a method testCreate commented out which results in three other test failures.
The class itself is never executed during ANT builds because by default we filter on com.google tests only.
testEmptyMapCompatibility
testCanonicalFullCollectionExists
testCanonicalEmptyCollectionExists
Maybe we should disable these tests.
It is a bit annoying if trying to run all gwt-dev tests via IDE as you do not expect to use a filter on tests.
Steps to reproduce
Run ALL tests in dev/core/test by overriding -Dgwt.junit.testcase.dev.core.includes
The text was updated successfully, but these errors were encountered:
GWT extends Apache Commons Collections TestIdentityMap in IdentityMapExtTest and overrides a factory method makeObject to make TestIdentityMap and its superclass AbstractTestObject use a custom GWT implementation of identity map.
However TestIdentityMap only uses makeObject in tests defined in AbstractTestObject which boils down to equals/hashcode contract tests and serialization tests with serialization tests being disabled in IdentityMapExtTest. The real tests that verify that we have an identity map are
TestIdentityMap.testBasic()
TestIdentityMap.testHashEntry()
and those two tests don't use makeObject but instead use the Apache Commons Collections IdentityMap directly. As a result IdentityMapExtTest likely not test the GWT implementation as intended.
Two possible solutions:
Let IdentityMapExtTest extend AbstractTestObject directly, push the test logic of TestIdentityMap.testBasic()/testHashEntry() down to IdentityMapExtTest and let it actually use the GWT implementation of an identity map. Finally TestIdentityMap can be deleted.
Refactor TestIdentityMap: Make it abstract so it won't be picked up as independent test case and then give it a way that IdentityMapExtTest can provide a map implementation for the test methods defined in TestIdentityMap.
My ultimate goal is to have all tests run in IDE (IntelliJ) without much configuration of IDE run configuration. For collection tests it requires to fix this issue and to hide BulkTest as independent test (see #10071)
I think I would vote for the first solution because we do not use TestIdentityMap multiple times in code.
Description
In
dev/core/test
we haveTestIdentityMap
in the Apache commons test package. This test has a methodtestCreate
commented out which results in three other test failures.The class itself is never executed during ANT builds because by default we filter on
com.google
tests only.Maybe we should disable these tests.
It is a bit annoying if trying to run all gwt-dev tests via IDE as you do not expect to use a filter on tests.
Steps to reproduce
Run ALL tests in
dev/core/test
by overriding-Dgwt.junit.testcase.dev.core.includes
The text was updated successfully, but these errors were encountered: