Search in sources :

Example 6 with PluginManager

use of org.jmeterplugins.repository.PluginManager 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

PluginManager (org.jmeterplugins.repository.PluginManager)6 Test (org.junit.Test)6 PluginManagerTest (org.jmeterplugins.repository.PluginManagerTest)5 URL (java.net.URL)2 PluginSuggester (org.jmeterplugins.repository.plugins.PluginSuggester)2 HashSet (java.util.HashSet)1 LogEvent (org.apache.log.LogEvent)1 Log4jLogEvent (org.apache.logging.log4j.core.impl.Log4jLogEvent)1 MessageFormatMessage (org.apache.logging.log4j.message.MessageFormatMessage)1 Plugin (org.jmeterplugins.repository.Plugin)1