Closed pehala closed 3 years ago
I might do a little polishing but it is definitely review ready
@pehala The Server Check failed in the GitHub CI Run.
Yep, based on my investigation it is caused by mocking and testing CLI with subcommands. It is a failure in tests not in the funcionality (at least from what I tested :D)
Dump question, but are the converted track still in the repo? Can't find them at the moment.
They are supposed to be but seems like I forgot to add them. Good catch, Thanks!
@pehala How to compile the server.jar with Maven with the failing tests?
mvn install -DskipTests
Tracks added now
Okay. Here is my first impression:
Skip track
button in the solo-mode?Skip
:2020-10-19 11:23:51.105 java[59218:7494793] -[AWTView javaRole]: unrecognized selector sent to instance 0x7ff57b5ea500
2020-10-19 11:24:03.385 java[59218:7494793] -[AWTView javaRole]: unrecognized selector sent to instance 0x7ff57b5ea500
2020-10-19 11:24:09.004 java[59218:7494793] -[AWTView javaRole]: unrecognized selector sent to instance 0x7ff57b5ea500
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:460)
at agolf.TrackCollection.addTrack(TrackCollection.java:12)
at agolf.game.GamePanel.method333(GamePanel.java:288)
at agolf.Conn.handlePacket(Conn.java:184)
at agolf.Conn.dataReceived(Conn.java:24)
at com.aapeli.connection.GamePacketQueue.run(GamePacketQueue.java:32)
at java.lang.Thread.run(Thread.java:748)
Impressive contributions!
@pehala ready for merge? How about Documentation updates? Does the README already contain information on the Tracks migration?
Nope, I still need to fix the testa and add the documentation. I will add the checkboxes into the description.
Btw: What would you like to see in the docs? I could write there the whole structure of the track file and how it is processed but that would be in the separate file
@pehala Regarding the docs: I only thought about the essentials on how to get a server running. But I just realized that as all the files are already converted the exact process of migration is not really needed.
Details in the File structure are definitely optional, they also don't have to be in markdown format if you prefer to define them as comments inside the implementation only.
I created issue for the mockito/picocli bug remkop/picocli#1243
Many thanks!
Tests and documentation are now done.
TrackFileParser
as it can only intentionally handle V1 format.TrackParser
to use now isVersionedTrackFileParser
java -jar server.jar convert tracks
- Converts all tracks in place, doesn't override already converted ones.TODO:
Closes #64.