
com.trigonic.utils.test.junit.DefaultLabelMaker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-utils Show documentation
Show all versions of test-utils Show documentation
Provides utilities for testing
The newest version!
package com.trigonic.utils.test.junit;
public class DefaultLabelMaker implements LabelMaker {
private String delimiter;
public DefaultLabelMaker() {
this("");
}
public DefaultLabelMaker(String delimiter) {
this.delimiter = delimiter;
}
public String getLabel(int index, Object[] parameters) {
return String.format("[%s]", index);
}
public String getTestName(int index, Object[] parameters, String methodName) {
String label = getLabel(index, parameters);
return methodName + delimiter + label;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy