Permalink
Browse files

100% coverage for Version class

  • Loading branch information...
1 parent f501eda commit 99d38f97c0b0cc1b2a0366c71c37310b099f691e @league committed Sep 11, 2009
Showing with 2 additions and 7 deletions.
  1. +1 −1 build.xml
  2. +1 −0 net/contrapunctus/lzma/ApiDriftTest.java
  3. +0 −6 net/contrapunctus/lzma/Version.template
View
@@ -108,7 +108,7 @@
</junit>
</target>
- <target name="coverage">
+ <target name="coverage" depends="test">
<cobertura-report srcdir="." destdir="${build.coverage.dir}" />
</target>
@@ -25,6 +25,7 @@
String s = Version.context;
Version.main(new String[0]);
Version.main(new String[1]);
+ Version v = new Version(); // pointless but brings line coverage to 100%
}
/**
@@ -30,12 +30,6 @@ public class Version
public static final String context = "@context@";
/**
- * Private constructor, because there's no need to instantiate
- * this class.
- */
- private Version() { }
-
- /**
* Small main program that prints the library version or, with any
* argument, the context string.
*/

0 comments on commit 99d38f9

Please sign in to comment.