public ConsoleIOTestImpl(final Map<String, Deque<String>> inputValues,
final List<ValueForMessage> valuesForMessages) throws IOException {
- super();
this.inputValues = inputValues;
this.valuesForMessages = valuesForMessages;
}
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ScaleUtil {
+public final class ScaleUtil {
private static final ScheduledExecutorService EXECUTOR = new LoggingWrapperExecutor(4);
private static final Semaphore SEMAPHORE = new Semaphore(0);
private static final Stopwatch STOPWATCH = Stopwatch.createUnstarted();
private static ch.qos.logback.classic.Logger root;
private static Logger resultsLog;
+ private ScaleUtil() {
+ }
+
@SuppressWarnings("checkstyle:illegalCatch")
public static void main(final String[] args) {
final TesttoolParameters params = TesttoolParameters.parseArgs(args, TesttoolParameters.getParser());
private Callable theCallable;
LogOnExceptionCallable(Callable theCallable) {
- super();
this.theCallable = theCallable;
}
private final String value;
public Predicate(final IdentityValue name, final String value) {
- super();
this.name = name;
this.value = value;
}
private static final long serialVersionUID = -1741388894406313402L;
public UnsupportedFormatException() {
- super();
}
public UnsupportedFormatException(String message, Throwable cause) {
*/
ListenerAdapter(final YangInstanceIdentifier path, final String streamName,
final NotificationOutputType outputType) {
- super();
register(this);
this.outputType = Preconditions.checkNotNull(outputType);
this.path = Preconditions.checkNotNull(path);
* type of output on notification (JSON, XML)
*/
NotificationListenerAdapter(final SchemaPath path, final String streamName, final String outputType) {
- super();
register(this);
this.outputType = Preconditions.checkNotNull(outputType);
this.path = Preconditions.checkNotNull(path);
public TestJsonBodyReader() throws NoSuchFieldException, SecurityException {
- super();
this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
}
public TestJsonBodyReaderMountPoint() throws NoSuchFieldException,
SecurityException {
- super();
this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
}
private static SchemaContext schemaContext;
public TestJsonBodyWriter() throws NoSuchFieldException, SecurityException {
- super();
this.jsonBodyWriter = new NormalizedNodeJsonBodyWriter();
this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
}
private static SchemaContext schemaContext;
public TestJsonPatchBodyReader() throws NoSuchFieldException, SecurityException {
- super();
jsonToPatchBodyReader = new JsonToPatchBodyReader();
}
private static final String MOUNT_POINT = "instance-identifier-module:cont/yang-ext:mount";
public TestJsonPatchBodyReaderMountPoint() throws NoSuchFieldException, SecurityException {
- super();
jsonToPatchBodyReader = new JsonToPatchBodyReader();
}
}
public TestXmlBodyReader() throws Exception {
- super();
this.xmlBodyReader = new XmlNormalizedNodeBodyReader();
}
}
public TestXmlBodyReaderMountPoint() throws Exception {
- super();
this.xmlBodyReader = new XmlNormalizedNodeBodyReader();
}
private static SchemaContext schemaContext;
public TestXmlBodyWriter() throws NoSuchFieldException, SecurityException {
- super();
this.xmlBodyWriter = new NormalizedNodeXmlBodyWriter();
}
private static SchemaContext schemaContext;
public TestXmlPatchBodyReader() throws NoSuchFieldException, SecurityException {
- super();
xmlToPatchBodyReader = new XmlToPatchBodyReader();
}
private static final String MOUNT_POINT = "instance-identifier-module:cont/yang-ext:mount";
public TestXmlPatchBodyReaderMountPoint() throws NoSuchFieldException, SecurityException {
- super();
xmlToPatchBodyReader = new XmlToPatchBodyReader();
}
public JsonIdentityrefToNnTest() throws NoSuchFieldException,
SecurityException {
- super();
this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
}
private static SchemaContext schemaContext;
public JsonLeafrefToNnTest() throws NoSuchFieldException, SecurityException {
- super();
this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
}
private SchemaContext schemaContext;
public JsonToNnTest() throws NoSuchFieldException, SecurityException {
- super();
}
public static void initialize(final String path, SchemaContext schemaContext) {
public NnJsonChoiceCaseTest() throws NoSuchFieldException,
SecurityException {
- super();
jsonBodyWriter = new NormalizedNodeJsonBodyWriter();
}
private final NormalizedNodeJsonBodyWriter jsonBodyWriter;
public NnToJsonLeafrefType() throws NoSuchFieldException, SecurityException {
- super();
jsonBodyWriter = new NormalizedNodeJsonBodyWriter();
}
public NnToJsonWithAugmentTest() throws NoSuchFieldException,
SecurityException {
- super();
xmlBodyWriter = new NormalizedNodeJsonBodyWriter();
}
public NnInstanceIdentifierToXmlTest() throws NoSuchFieldException,
SecurityException {
- super();
xmlBodyWriter = new NormalizedNodeXmlBodyWriter();
}
private static SchemaContext schemaContext;
public NnToXmlTest() throws NoSuchFieldException, SecurityException {
- super();
this.xmlBodyWriter = new NormalizedNodeXmlBodyWriter();
}
public NnToXmlWithChoiceTest() throws NoSuchFieldException,
SecurityException {
- super();
xmlBodyWriter = new NormalizedNodeXmlBodyWriter();
}
public NnToXmlWithDataFromSeveralModulesTest() throws NoSuchFieldException,
SecurityException {
- super();
xmlBodyWriter = new NormalizedNodeXmlBodyWriter();
}
*/
ListenerAdapter(final YangInstanceIdentifier path, final String streamName,
final NotificationOutputType outputType) {
- super();
register(this);
setLocalNameOfPath(path.getLastPathArgument().getNodeType().getLocalName());
* type of output on notification (JSON, XML)
*/
NotificationListenerAdapter(final SchemaPath path, final String streamName, final String outputType) {
- super();
register(this);
setLocalNameOfPath(path.getLastComponent().getLocalName());
}
public XmlBodyReaderMountPointTest() throws Exception {
- super();
this.xmlBodyReader = new XmlNormalizedNodeBodyReader();
}
private final JsonToPatchBodyReader jsonToPatchBodyReader;
public JsonPatchBodyReaderMountPointTest() throws Exception {
- super();
jsonToPatchBodyReader = new JsonToPatchBodyReader();
}
private static SchemaContext schemaContext;
public JsonPatchBodyReaderTest() throws Exception {
- super();
jsonToPatchBodyReader = new JsonToPatchBodyReader();
}
private static final String MOUNT_POINT = "instance-identifier-module:cont/yang-ext:mount/";
public XmlPatchBodyReaderMountPointTest() throws Exception {
- super();
xmlToPatchBodyReader = new XmlToPatchBodyReader();
}
private static SchemaContext schemaContext;
public XmlPatchBodyReaderTest() throws Exception {
- super();
xmlToPatchBodyReader = new XmlToPatchBodyReader();
}
}
public JsonBodyReaderTest() throws Exception {
- super();
this.jsonBodyReader = new JsonNormalizedNodeBodyReader();
}
}
public XmlBodyReaderTest() throws Exception {
- super();
this.xmlBodyReader = new XmlNormalizedNodeBodyReader();
}