Skip to content

Commit

Permalink
Changed variable name and removed the space before the equal sign
Browse files Browse the repository at this point in the history
  • Loading branch information
awulder committed Aug 20, 2012
1 parent 48aabe1 commit 61326c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -22,7 +22,7 @@ static class MethodParameterValue extends PotentialAssignment {
private final FrameworkMethod fMethod;

private MethodParameterValue(FrameworkMethod dataPointMethod) {
fMethod = dataPointMethod;
fMethod= dataPointMethod;
}

@Override
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand All @@ -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;
}
Expand Down
Expand Up @@ -39,7 +39,7 @@ public static class WithCorrectlyTypedDataPointsMethod {
public static String[] correctlyTyped = {"Good", "Morning"};

@DataPoints
public static String[][] wrongfullyTyped() {
public static String[][] anotherCorrectlyTyped() {
return new String[][]{
{"Hello", "World"}
};
Expand Down

0 comments on commit 61326c9

Please sign in to comment.