Mars.Ma
5 years ago
4 changed files with 52 additions and 22 deletions
@ -1,13 +1,13 @@
|
||||
package com.fanruan.api.plugin; |
||||
|
||||
import com.fanruan.api.runtime.PluginKit; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
|
||||
public class PluginKitTest { |
||||
@Test |
||||
public void getArray(){ |
||||
PluginKit p1 = new PluginKit(); |
||||
TestExtraClass p2 = new TestExtraClass(); |
||||
Assert.assertEquals(p1.getArray("abcd"), p2.getArray("abcd")); |
||||
public void getArray() { |
||||
Assert.assertFalse(PluginKit.isCurrentPluginAvailable()); |
||||
|
||||
} |
||||
} |
||||
|
@ -1,12 +0,0 @@
|
||||
package com.fanruan.api.plugin; |
||||
import com.fr.plugin.injectable.PluginSingleInjection; |
||||
|
||||
public class TestExtraClass extends com.fr.plugin.AbstractExtraClassManager{ |
||||
protected boolean mountSpecific(PluginSingleInjection injection){ |
||||
return true; |
||||
} |
||||
|
||||
protected boolean demountSpecific(PluginSingleInjection injection){ |
||||
return true; |
||||
} |
||||
} |
Loading…
Reference in new issue