MCPcopy Create free account
hub / github.com/PCGen/pcgen / testIsPCGenLstFile

Method testIsPCGenLstFile

code/src/test/pcgen/io/PCGFileTest.java:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 @Test
47 void testIsPCGenLstFile() throws Exception
48 {
49 //file must exist for it to be true
50 assertFalse(PCGFile.isPCGenListFile(new File(
51 Constants.EXTENSION_LIST_FILE)), "Extension without filename");
52 File temp = File.createTempFile("LST", Constants.EXTENSION_LIST_FILE);
53 temp.deleteOnExit();
54 assertTrue(PCGFile.isPCGenListFile(temp), "File existence");
55 assertFalse(PCGFile.isPCGenCharacterOrPartyFile(temp), "File existence");
56 }
57
58}

Callers

nothing calls this directly

Calls 2

isPCGenListFileMethod · 0.95

Tested by

no test coverage detected