assertEquals("[GET, POST]", engineGroup.toString());
}
public void testNotOverrideByAll() {
EngineGroup engineGroup = new EngineGroupImpl();
engineGroup.addEngine(ReqMethod.GET, new LinkedEngine(null, getEngine, null));
engineGroup.addEngine(ReqMethod.ALL, new LinkedEngine(null, defEngine, null));
engineGroup.addEngine(ReqMethod.POST, new LinkedEngine(null, postEngine, null));
assertSame(getEngine, engineGroup.getEngines(ReqMethod.GET)[0].getTarget());
assertSame(defEngine, engineGroup.getEngines(ReqMethod.GET)[1].getTarget());
assertSame(defEngine, engineGroup.getEngines(ReqMethod.POST)[0].getTarget());
assertSame(postEngine, engineGroup.getEngines(ReqMethod.POST)[1].getTarget());
assertSame(defEngine, engineGroup.getEngines(ReqMethod.PUT)[0].getTarget());
assertSame(defEngine, engineGroup.getEngines(ReqMethod.DELETE)[0].getTarget());
assertEquals("[GET, POST, DELETE, PUT, HEAD, OPTIONS, TRACE]", engineGroup.toString());
}