Removed code that was marked as deprecated.
Also updated test that tested deprecated code. resolves #366
This commit is contained in:
committed by
Michael Minella
parent
1ae7930d09
commit
76309b89ff
@@ -30,18 +30,12 @@ import static org.junit.Assert.assertEquals;
|
||||
*/
|
||||
public class SimpleCommandLineArgsProviderTests {
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testNullConstructorArg() {
|
||||
new SimpleCommandLineArgsProvider(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
TaskExecution taskExecution = new TaskExecution();
|
||||
taskExecution.setArguments(Arrays.asList("foo", "bar", "baz"));
|
||||
|
||||
SimpleCommandLineArgsProvider provider = new SimpleCommandLineArgsProvider();
|
||||
provider.onTaskStartup(taskExecution);
|
||||
SimpleCommandLineArgsProvider provider = new SimpleCommandLineArgsProvider(taskExecution);
|
||||
|
||||
List<String> commandLineArgs = provider.getCommandLineArgs(null);
|
||||
|
||||
@@ -60,8 +54,7 @@ public class SimpleCommandLineArgsProviderTests {
|
||||
TaskExecution taskExecution = new TaskExecution();
|
||||
taskExecution.setArguments(Arrays.asList("foo", "bar", "baz"));
|
||||
|
||||
SimpleCommandLineArgsProvider provider = new SimpleCommandLineArgsProvider();
|
||||
provider.onTaskStartup(taskExecution);
|
||||
SimpleCommandLineArgsProvider provider = new SimpleCommandLineArgsProvider(taskExecution);
|
||||
provider.setAppendedArgs(appendedValues);
|
||||
|
||||
List<String> commandLineArgs = provider.getCommandLineArgs(null);
|
||||
@@ -80,8 +73,7 @@ public class SimpleCommandLineArgsProviderTests {
|
||||
TaskExecution taskExecution = new TaskExecution();
|
||||
taskExecution.setArguments(Arrays.asList("foo", "bar", "baz"));
|
||||
|
||||
SimpleCommandLineArgsProvider provider = new SimpleCommandLineArgsProvider();
|
||||
provider.onTaskStartup(taskExecution);
|
||||
SimpleCommandLineArgsProvider provider = new SimpleCommandLineArgsProvider(taskExecution);
|
||||
provider.setAppendedArgs(null);
|
||||
|
||||
List<String> commandLineArgs = provider.getCommandLineArgs(null);
|
||||
|
||||
Reference in New Issue
Block a user