refactor and add new tests

refactor and add new tests
This commit is contained in:
coderfengyun 2014-03-28 14:01:15 +08:00
parent 6b05316265
commit 00b55e89dd
7 changed files with 19 additions and 22 deletions

View File

@ -0,0 +1 @@
row1;10;11~row2;20;21~row3,30,31~

View File

@ -0,0 +1 @@
row1;10;11~row2;20;21~row3,30,31~

View File

@ -0,0 +1 @@
row1;10;11~row2;20;21~row3,30,31~

View File

@ -0,0 +1 @@
row1;10;11~row2;20;21~row3,30,31~

View File

@ -0,0 +1,8 @@
package org.bench4q.agent.api;
import org.springframework.stereotype.Controller;
@Controller
public class ParameterizationController {
}

View File

@ -1,18 +0,0 @@
package org.bench4q.agent.parameterization.impl;
import java.io.BufferedReader;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class Para_File {
@SuppressWarnings("unused")
private Map<String, BufferedReader> readBuffer = new HashMap<String, BufferedReader>();
public void getFromFile(UUID id, String fileName, String column,
String firstData, String byNumber) {
}
}

View File

@ -73,13 +73,17 @@ public class Test_InstanceCotroller {
ic.doCleanUp();
}
@Test
public void testGetParamWithUpdateOnEachOccurrence() {
}
@Test
public void testGetParameter() throws Exception {
UUID testId = UUID.randomUUID();
createParamFileFor(new Para_Table(testId)
.getParamFileFullPath("param1"));
VUserContext paracCoor = new VUserContext(
new ParametersFactory(testId));
VUserContext paracCoor = new VUserContext(new ParametersFactory(testId));
ParamFormatParser paramFormatParser = ParamFormatParser
.parseInputParameter(Test_CASE1);
String result = (String) TestHelper.invokePrivate(paracCoor,
@ -94,8 +98,7 @@ public class Test_InstanceCotroller {
UUID testId = UUID.randomUUID();
createParamFileFor(new Para_Table(testId)
.getParamFileFullPath("param1"));
VUserContext paracCoor = new VUserContext(
new ParametersFactory(testId));
VUserContext paracCoor = new VUserContext(new ParametersFactory(testId));
ParamFormatParser paramFormatParser = ParamFormatParser
.parseInputParameter(Test_CASE1);
String result = (String) TestHelper.invokePrivate(