MutopiaProject / MutopiaWeb

MutopiaProject site evolution to HTML5
3 stars 7 forks source link

Documentation and testing for MutopiaPiece #25

Closed ksnortum closed 8 years ago

ksnortum commented 8 years ago

I'm running the jUnit tests in Eclipse IDE -- the other way I know to do it is to create a POM file and use Maven. You need the two dependencies from Gradle (for Images and jUnit) plus src/test/resources in your build path / CLASSPATH. I made this path a source path in Eclipse and I know that the path is a default in Maven if we go that way.

I put two files in the resources folder: a fake ZIP file (we only need to test for existence) and a real preview PNG file so we can test retrieving the height and width from it.

I moved CCMapTest under the package mutopia/core so all the test would be in the same place and not in a default package.