Search in sources :

Example 1 with LogEvent

use of org.apache.log.LogEvent in project jmeter-plugins-manager by undera.

the class LoggerPanelWrappingTest method testFlow.

@Test
public void testFlow() throws Exception {
    if (!GraphicsEnvironment.getLocalGraphicsEnvironment().isHeadlessInstance()) {
        PluginManager pmgr = new PluginManager();
        LoggerPanelWrapping wrapping = new LoggerPanelWrapping(pmgr);
        PluginSuggester suggester = new PluginSuggester(pmgr);
        wrapping.setSuggester(suggester);
        assertEquals(suggester, wrapping.getSuggester());
        LogEvent event = new LogEvent();
        event.setCategory("SaveService");
        event.setMessage("Save File");
        wrapping.processEvent(event);
    }
}
Also used : PluginManager(org.jmeterplugins.repository.PluginManager) PluginSuggester(org.jmeterplugins.repository.plugins.PluginSuggester) LogEvent(org.apache.log.LogEvent) PluginManagerTest(org.jmeterplugins.repository.PluginManagerTest) Test(org.junit.Test)

Aggregations

LogEvent (org.apache.log.LogEvent)1 PluginManager (org.jmeterplugins.repository.PluginManager)1 PluginManagerTest (org.jmeterplugins.repository.PluginManagerTest)1 PluginSuggester (org.jmeterplugins.repository.plugins.PluginSuggester)1 Test (org.junit.Test)1