Skip to content

Commit f0ef3bd

Browse files
author
John Donovan
committed
updates..
1 parent d0f7441 commit f0ef3bd

3 files changed

Lines changed: 18 additions & 36 deletions

File tree

src/com/gtnexus/appxpress/cli/option/BuilderOptionInterpreter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.gtnexus.appxpress.cli.option;
22

3-
import static com.gtnexus.appxpress.AppXpressConstants.ZIP_EXTENSION;
4-
53
import java.io.File;
64
import java.nio.file.Path;
75
import java.util.Arrays;

src/com/gtnexus/appxpress/pmextractor/gitmap/GitMapper.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ public static GitMapper createMapper(AppXpressContext<ExtractorOption> context)
5555
return new GitMapper(context);
5656
}
5757

58-
59-
// public static GitMapper createMapper(Map<ExtractorOption, String> optionMap) {
60-
// if (optionMap.containsKey(ExtractorOption.PLATFORM_ZIP)) {
61-
// String platformZip = optionMap.get(ExtractorOption.PLATFORM_ZIP);
62-
// if (!platformZip.endsWith(ZIP_EXTENSION)) {
63-
// platformZip = platformZip + ZIP_EXTENSION;
64-
// optionMap.put(ExtractorOption.PLATFORM_ZIP, platformZip);
65-
// }
66-
// }
67-
// return new GitMapper(new GitMapVO(optionMap));
68-
// }
69-
7058
public GitMapper(AppXpressContext<ExtractorOption> context) {
7159
this.ctx = context;
7260
this.vo = new GitMapVO(context.getOptMap());
@@ -75,13 +63,6 @@ public GitMapper(AppXpressContext<ExtractorOption> context) {
7563
this.fs = new FileService();
7664
}
7765

78-
// public GitMapper(GitMapVO vo) {
79-
// this.vo = vo;
80-
// this.overwrittenScripts = new ArrayList<>();
81-
// this.prep = new GitMapPrep();
82-
// this.fs = new FileService();
83-
// }
84-
8566
/**
8667
* Performs the appropriate actions for module extraction
8768
*/

test/com/gtnexus/appxpress/cli/option/BuilderOptionInterpreterTest.java

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public class BuilderOptionInterpreterTest {
3131
PMProperties properties;
3232
@Mock
3333
PlatformSelector selector;
34-
34+
3535
@Mock
3636
AppXpressDirResolver resolver;
37-
37+
3838
BuilderOptionInterpreter interpreter;
3939
HashMap<BuilderOption, String> optMap = new HashMap<>();
4040

@@ -44,21 +44,24 @@ public void setup() {
4444
}
4545

4646
@Test(expected = NullPointerException.class)
47-
public void testPerformCustomInterpretationWithNull() throws Exception {
48-
interpreter.performCustomInterpretation(null);
49-
}
47+
public void testPerformCustomInterpretationWithNull() throws Exception {
48+
interpreter.performCustomInterpretation(null);
49+
}
5050

5151
@Test
52-
public void testPerformCustomInterpretationWithoutSPFlag()
53-
throws AppXpressException {
54-
ParsedOptions<BuilderOption> parsedOptions = new ParsedOptions<>(new Options(), new HashMap<BuilderOption, String>(), EnumSet.allOf(BuilderOption.class));
55-
BuilderOptionInterpreter interpeter = new BuilderOptionInterpreter(app, shutdown, parsedOptions, properties, selector, resolver);
56-
fail("unimplemented");
57-
}
52+
public void testPerformCustomInterpretationWithoutSPFlag()
53+
throws AppXpressException {
54+
ParsedOptions<BuilderOption> parsedOptions = new ParsedOptions<>(
55+
new Options(), new HashMap<BuilderOption, String>(),
56+
EnumSet.allOf(BuilderOption.class));
57+
BuilderOptionInterpreter interpeter = new BuilderOptionInterpreter(app,
58+
shutdown, parsedOptions, properties, selector, resolver);
59+
fail("unimplemented");
60+
}
5861

5962
@Test
60-
public void testPerformCustomInterpretationWithSPFlag()
61-
throws AppXpressException {
62-
fail("unimplemented");
63-
}
63+
public void testPerformCustomInterpretationWithSPFlag()
64+
throws AppXpressException {
65+
fail("unimplemented");
66+
}
6467
}

0 commit comments

Comments
 (0)