Search in sources :

Example 21 with SystemOutTerminal

use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.

the class InformixNormalGetTestSuite method initialize.

@BeforeClass
public static void initialize() throws InjectionFailureException {
    InjectionModel model = new InjectionModel();
    MediatorModel.register(model);
    model.displayVersion();
    MediatorModel.model().addObserver(new SystemOutTerminal());
    ConnectionUtil.setUrlBase("http://" + AbstractTestSuite.HOSTNAME + "/informix_simulate_get.php");
    ParameterUtil.setQueryString(Arrays.asList(new SimpleEntry<String, String>("lib", "0")));
    ConnectionUtil.setMethodInjection(MethodInjection.QUERY);
    MediatorModel.model().beginInjection();
    MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
Also used : InjectionModel(com.jsql.model.InjectionModel) SimpleEntry(java.util.AbstractMap.SimpleEntry) SystemOutTerminal(com.jsql.view.terminal.SystemOutTerminal) BeforeClass(org.junit.BeforeClass)

Aggregations

InjectionModel (com.jsql.model.InjectionModel)21 SystemOutTerminal (com.jsql.view.terminal.SystemOutTerminal)21 BeforeClass (org.junit.BeforeClass)21 SimpleEntry (java.util.AbstractMap.SimpleEntry)15