Skip to content

Commit b9aee7e

Browse files
minor adjustment for too long line and variable names
1 parent 284321b commit b9aee7e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/src/test/java/oracle/weblogic/deploy/util/WLSDeployArchiveTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ public class WLSDeployArchiveTest {
2929
private static final String APP2_ENTRY_NAME1 = "wlsdeploy/applications/my-other-app.war";
3030
private static final String APP2_ENTRY_NAME2 = "wlsdeploy/applications/my-other-app(1).war";
3131
private static final String APP2_ENTRY_NAME3 = "wlsdeploy/applications/my-other-app(2).war";
32+
private static final String INVALID_APP_ENTRY_NAME = "wlsdeploy/applications/does-not-exist.war";
3233
private static final String APP_DIR_TO_ADD = "src/test/resources/my-app/";
3334
private static final String APP_DIR_ENTRY_NAME = "wlsdeploy/applications/my-app/";
34-
private static final String INVALID_APP_ENTRY_NAME = "wlsdeploy/applications/does-not-exist.war";
35+
private static final String INVALID_DIR_ENTRY_NAME = "wlsdeploy/applications/does-not-exist/";
3536

3637
private static final String ZIP_FILE_EXISTING_EMPTY_FILE = "my-empty-zip.zip";
3738
private static final String ZIP_FILE_EXISTING_BINARIES_FILE = "DiscoveredDemoDomain.zip";
@@ -104,7 +105,8 @@ public void testIsAFile() throws Exception {
104105
WLSDeployArchive archive = new WLSDeployArchive(APPS_ARCHIVE_FILE_NAME);
105106
archive.addApplication(new File(APP1_TO_ADD));
106107
Assert.assertTrue("File not found in archive: " + APP1_ENTRY_NAME1, archive.containsFile(APP1_ENTRY_NAME1));
107-
Assert.assertTrue("File not found in archive: " + APP1_ENTRY_NAME1, archive.containsFileOrPath(APP1_ENTRY_NAME1));
108+
Assert.assertTrue("File not found in archive: "
109+
+ APP1_ENTRY_NAME1, archive.containsFileOrPath(APP1_ENTRY_NAME1));
108110
Assert.assertFalse("Is not a File", archive.containsFile(APP_DIR_ENTRY_NAME));
109111
Assert.assertFalse("File should not exist", archive.containsFileOrPath(INVALID_APP_ENTRY_NAME));
110112
archive.close();
@@ -118,6 +120,7 @@ public void testIsAPath() throws Exception {
118120
Assert.assertTrue("Path not found in archive: " + APP_DIR_ENTRY_NAME,
119121
archive.containsFileOrPath(APP_DIR_ENTRY_NAME));
120122
Assert.assertFalse("Is not a Path", archive.containsPath(APP1_ENTRY_NAME1));
123+
Assert.assertFalse("Path should not exist", archive.containsFileOrPath(INVALID_DIR_ENTRY_NAME));
121124
}
122125

123126
@Test

0 commit comments

Comments
 (0)