Package com.jitlogic.zorka.core.spy

Examples of com.jitlogic.zorka.core.spy.SpyProcessor.process()


    public void testCollectRecordViaBshFuncManual() throws Exception {
        zorkaAgent.eval("process(obj) { test.result(obj); }");
        SpyProcessor col = (SpyProcessor) zorkaAgent.eval(
                "(com.jitlogic.zorka.core.spy.SpyProcessor)this");

        col.process(record);

        assertEquals("should submit one result", 1, results.size());
        assertEquals("result should be Spy record", record, results.get(0));
    }
View Full Code Here


        record.put("C2", "oja!");

        record.put(".STAGES", (Integer) record.get(".STAGES") | (1 << SpyLib.ON_SUBMIT));
        record.put(".STAGE", SpyLib.ON_SUBMIT);

        col.process(record);

        Object obj = getAttr(testMbs, "test:name=TestObj", "testAttr");
        assertEquals("getter should return string passed via spy record", "oja!", obj);
    }
View Full Code Here

        record.put("C1", 1L);
        record.put("C2", "oja!");

        record.put(".STAGES", (Integer) record.get(".STAGES") | (1 << SpyLib.ON_SUBMIT));
        record.put(".STAGE", SpyLib.ON_SUBMIT);
        col.process(record);

        Object obj = getAttr(testMbs, "test:name=TestObj", "testAttr");
        assertEquals("getter should return length of string passed via spy record", 4, obj);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.