forked from nullbucket/edi-debatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename files and namespaces, clean test files
- Loading branch information
short000
committed
Mar 26, 2018
1 parent
c1bdcaa
commit 4b298ed
Showing
16 changed files
with
132 additions
and
104 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ull0/edi/debatcher/interfaces/Config.java → .../java/org/null0/x12/debatcher/Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.null0.edi.debatcher.interfaces; | ||
package org.null0.x12.debatcher; | ||
|
||
import java.nio.file.Path; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ll0/edi/debatcher/DebatcherException.java → ...ll0/x12/debatcher/DebatcherException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
.../edi/debatcher/MetadataLoggerDefault.java → .../null0/x12/debatcher/DefaultMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a/org/null0/edi/debatcher/Delimiters.java → ...a/org/null0/x12/debatcher/Delimiters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ull0/edi/debatcher/HierarchicalLevel.java → ...ull0/x12/debatcher/HierarchicalLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.null0.edi.debatcher; | ||
package org.null0.x12.debatcher; | ||
|
||
class HierarchicalLevel { | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
.../debatcher/interfaces/MetadataLogger.java → ...ava/org/null0/x12/debatcher/Metadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...di/debatcher/interfaces/EdiValidator.java → ...va/org/null0/x12/debatcher/Validator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/test/java/org/null0/x12/debatcher/test/TestFileCleaner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.null0.x12.debatcher.test; | ||
|
||
import java.io.File; | ||
|
||
import org.null0.x12.debatcher.Config; | ||
import org.null0.x12.debatcher.DefaultConfig; | ||
|
||
public class TestFileCleaner { | ||
public static synchronized boolean clean(String endsWith) { | ||
try { | ||
Config config = new DefaultConfig(); | ||
File dir = new File(config.getOutputDirectory().toString()); | ||
if (!dir.exists()) { | ||
return false; | ||
} | ||
|
||
for (File f : dir.listFiles()) { | ||
if (f.getName().endsWith(endsWith)) { | ||
f.delete(); | ||
} | ||
} | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
return false; | ||
} | ||
return true; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...edi/debatcher/test/TestFileGenerator.java → ...x12/debatcher/test/TestFileGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.