claudemartin / enum-bit-set

EnumSet and BitSet in one!
http://claude-martin.ch/enumbitset/
7 stars 3 forks source link

test files only compile when module requires org.junit.jupiter.api #3

Open claudemartin opened 6 years ago

claudemartin commented 6 years ago

Regarding the branch "java10": If you add requires org.junit.jupiter.api; to modules-info.java you can compile and run the junit5-tests. But those are not part of the module "ch.claude_martin.enumbitset". There should be a second module (ch.claude_martin.enumbitset.test or whatever) which requires ch.claude_martin.enumbitset. But in Eclipse it seems impossible to have more than one module per project. Maybe this will work with Eclipse Photon.

claudemartin commented 6 years ago

It should work. Maybe I just have to add maven to the module path. I'll try this later. https://www.youtube.com/watch?v=uJNzMGrbXbI&t=42s

claudemartin commented 6 years ago

It's crazy how buggy this still is. Eclipse automatically moves Maven from the module path to the class path. But in the video (see above) they say you have to move it to the module path. Even if I do that and don't let Maven do it's thing it doesn't work at all. Eclipse can resolve the types, such as @Test, in the editor but the error "Test cannot be resolved to a type" remains.

claudemartin commented 6 years ago

The java10 branch has now a workaround. I keep this open and will only merge the branch back to master when this really works.