Skip to content

Conversation

@CarolynRountree
Copy link
Contributor

@CarolynRountree CarolynRountree commented Apr 20, 2018

This will allow an application directory to exist in archive/model.

private static final String APP2_ENTRY_NAME2 = "wlsdeploy/applications/my-other-app(1).war";
private static final String APP2_ENTRY_NAME3 = "wlsdeploy/applications/my-other-app(2).war";
private static final String INVALID_ENTRY_NAME = "wlsdeploy/applications/does-not-exist.war";
private static final String APP_DIR_ENTRY_NAME = "wlsdeploy/applications/my-app/";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be clearer if this entry was named "INVALID_DIR_ENTRY_NAME"

archive.addApplication(new File(APP1_TO_ADD));
archive.addApplication(new File(APP_DIR_TO_ADD));
Assert.assertTrue("File not found in archive: " + APP1_ENTRY_NAME1, archive.containsFile(APP1_ENTRY_NAME1));
//Assert.assertTrue("Path not found in archive: " + APP_DIR_ENTRY_NAME, archive.containsPath(APP_DIR_ENTRY_NAME));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove unused code.

}

@Test
public void testIsAFile() throws Exception {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please separate directory tests from file tests into new test method "testIsADir", and add assertion for directory found (positive directory test)

@ddsharpe ddsharpe merged commit 4686890 into master Apr 23, 2018
@ddsharpe ddsharpe deleted the Issue#66-validate-exploded-libraries branch April 23, 2018 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants