@Test public void testParser() { VerGen.Version v = VerGen.parseVersionString(input); Assert.assertEquals(expected[0], v.maj); Assert.assertEquals(expected[1], v.min); Assert.assertEquals(expected[2], v.micro); Assert.assertEquals(expected[3], v.qualifier); }
@Test public void testGenFile() throws Exception { VerGen.Version v = VerGen.parseVersionString(input); File outputDir = ClientBase.createTmpDir(); VerGen.generateFile(outputDir, v, 1, "Nov1"); ClientBase.recursiveDelete(outputDir); }
@Test public void testGenFile() throws Exception { VerGen.Version v = VerGen.parseVersionString(input); File outputDir = ClientBase.createTmpDir(); VerGen.generateFile(outputDir, v, "1", "Nov1"); ClientBase.recursiveDelete(outputDir); }