|
|
|
@ -92,7 +92,7 @@ public class PluginOperateUtilsTest {
|
|
|
|
|
|
|
|
|
|
EasyMock.replay(pluginContext); |
|
|
|
|
|
|
|
|
|
Assert.assertNull(Reflect.on(PluginOperateUtils.class).call("getPluginName", null, null).get()); |
|
|
|
|
Assert.assertEquals(Reflect.on(PluginOperateUtils.class).call("getPluginName", null, null).get(), ""); |
|
|
|
|
Assert.assertEquals(Reflect.on(PluginOperateUtils.class).call("getPluginName", pluginContext, pluginMarker1).get(), "pluginContext"); |
|
|
|
|
Assert.assertEquals(Reflect.on(PluginOperateUtils.class).call("getPluginName", null, pluginMarker1).get(), "id-1"); |
|
|
|
|
Assert.assertEquals(Reflect.on(PluginOperateUtils.class).call("getPluginName", null, pluginMarker2).get(), "name-2"); |
|
|
|
|