use of com.dexels.navajo.server.test.TestNavajoConfig in project navajo by Dexels.
the class StandardFunctionsTest method testEvaluateExpression.
@Test
public void testEvaluateExpression() {
DispatcherFactory.createDispatcher(new TestDispatcher(new TestNavajoConfig()));
FunctionInterface fi = fff.getInstance(cl, "EvaluateExpression");
fi.reset();
Navajo doc = createTestNavajo();
Header h = NavajoFactory.getInstance().createHeader(doc, "aap", "noot", "mies", -1);
doc.addHeader(h);
fi.setInMessage(doc);
fi.insertStringOperand("true");
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
}
use of com.dexels.navajo.server.test.TestNavajoConfig in project navajo by Dexels.
the class SharedFileStoreTest method setUp.
@Before
public void setUp() throws Exception {
TribeManagerFactory.setInstance(new DefaultTribeManager());
DispatcherFactory.createDispatcher(new TestDispatcher(new TestNavajoConfig()));
DispatcherFactory.getInstance().setUseAuthorisation(false);
si = new SharedFileStore(new File("sharedstore"), new TestNavajoConfig());
}
use of com.dexels.navajo.server.test.TestNavajoConfig in project navajo by Dexels.
the class NavajoEventRegistryTest method setUp.
@Before
public void setUp() {
DispatcherFactory.createDispatcher(new TestDispatcher(new TestNavajoConfig()));
NavajoEventRegistry.clearInstance();
message = null;
instance1 = null;
instance2 = null;
instance3 = null;
instance4 = null;
}
use of com.dexels.navajo.server.test.TestNavajoConfig in project navajo by Dexels.
the class StandardFunctionsTest method testEuro.
@Test
public void testEuro() {
DispatcherFactory.createDispatcher(new TestDispatcher(new TestNavajoConfig()));
FunctionInterface fi = fff.getInstance(cl, "Euro");
fi.reset();
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
}
use of com.dexels.navajo.server.test.TestNavajoConfig in project navajo by Dexels.
the class SharedStoreInterfaceTest method setUp.
@Before
public void setUp() {
DispatcherFactory.createDispatcher(new TestDispatcher(new TestNavajoConfig()));
DispatcherFactory.getInstance().setUseAuthorisation(false);
si = SharedStoreFactory.getInstance();
}
Aggregations