cbeust/testng-eclipse — Issue #31: Plugin Requires Parameter File For Classes With Only Optional Parameters
Author: davekerber
Created: 2011-11-10 21:24:15+00:00
State: open

Given the java class:
```java
public class TestThatTakesParameters {
@Test
@Parameters({"parameter_one"})
public void testMethod(@Optional("parameter_one_default") String parameter) {
System.out.println(parameter);
}
}
```

in a project, if there are no test suite XML files the test runs correctly and the parameter is defaulted.

If you add parameter_file_one.xml to the project:
```xml

```

The the parameters from that file will automatically be included, which is not expected because the parameter is defaulted.

If a second file parameter_file_two.xml is added:
```xml

```

you will not be able to run the test without selecting a parameter file, which is not expected because the parameter on the method is defaulted.

For the scenario where all the parameters are defaulted, I would expect that selecting a parameter file be optional instead of required.