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

Method testIsPCGenPartyFile

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

Source from the content-addressed store, hash-verified

32 }
33
34 @Test
35 void testIsPCGenPartyFile() throws Exception
36 {
37 //file must exist for it to be true
38 assertFalse(PCGFile.isPCGenPartyFile(new File(
39 Constants.EXTENSION_PARTY_FILE)), "Extension without filename");
40 File temp = File.createTempFile("PCT", Constants.EXTENSION_PARTY_FILE);
41 temp.deleteOnExit();
42 assertTrue(PCGFile.isPCGenPartyFile(temp), "File existence");
43 assertTrue(PCGFile.isPCGenCharacterOrPartyFile(temp), "File existence");
44 }
45
46 @Test
47 void testIsPCGenLstFile() throws Exception

Callers

nothing calls this directly

Calls 2

isPCGenPartyFileMethod · 0.95

Tested by

no test coverage detected