Skip to content
Browse files

Changed variable name and removed the space before the equal sign

  • Loading branch information...
1 parent 48aabe1 commit 61326c93276d31e249e57815edf93b695df5669d Arjan Wulder committed Aug 20, 2012
View
12 src/main/java/org/junit/experimental/theories/internal/AllMembersSupplier.java
@@ -22,7 +22,7 @@
private final FrameworkMethod fMethod;
private MethodParameterValue(FrameworkMethod dataPointMethod) {
- fMethod = dataPointMethod;
+ fMethod= dataPointMethod;
}
@Override
@@ -53,12 +53,12 @@ public String getDescription() throws CouldNotGenerateValueException {
* Constructs a new supplier for {@code type}
*/
public AllMembersSupplier(TestClass type) {
- fClass = type;
+ fClass= type;
}
@Override
public List<PotentialAssignment> getValueSources(ParameterSignature sig) {
- List<PotentialAssignment> list = new ArrayList<PotentialAssignment>();
+ List<PotentialAssignment> list= new ArrayList<PotentialAssignment>();
addFields(sig, list);
addSinglePointMethods(sig, list);
@@ -90,7 +90,7 @@ private void addFields(ParameterSignature sig,
List<PotentialAssignment> list) {
for (final Field field : fClass.getJavaClass().getFields()) {
if (Modifier.isStatic(field.getModifiers())) {
- Class<?> type = field.getType();
+ Class<?> type= field.getType();
if (sig.canAcceptArrayType(type)
&& field.getAnnotation(DataPoints.class) != null) {
try {
@@ -108,13 +108,13 @@ private void addFields(ParameterSignature sig,
}
private void addArrayValues(String name, List<PotentialAssignment> list, Object array) {
- for (int i = 0; i < Array.getLength(array); i++)
+ for (int i= 0; i < Array.getLength(array); i++)
list.add(PotentialAssignment.forValue(name + "[" + i + "]", Array.get(array, i)));
}
private void addMultiPointArrayValues(ParameterSignature sig, String name, List<PotentialAssignment> list,
Object array) throws Throwable {
- for (int i = 0; i < Array.getLength(array); i++) {
+ for (int i= 0; i < Array.getLength(array); i++) {
if (!isCorrectlyTyped(sig, Array.get(array, i).getClass())) {
return;
}
View
2 ...rg/junit/tests/experimental/theories/runner/TypeMatchingBetweenMultiDataPointsMethod.java
@@ -39,7 +39,7 @@ public void ignoreWrongTypedDataPointsMethod() {
public static String[] correctlyTyped = {"Good", "Morning"};
@DataPoints
- public static String[][] wrongfullyTyped() {
+ public static String[][] anotherCorrectlyTyped() {
return new String[][]{
{"Hello", "World"}
};

0 comments on commit 61326c9

Please sign in to comment.
Something went wrong with that request. Please try again.