forked from fanruan/finekit
zjz1993
5 years ago
6 changed files with 30 additions and 27 deletions
@ -1,13 +0,0 @@
|
||||
package com.fanruan.api.plugin; |
||||
|
||||
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")); |
||||
} |
||||
} |
@ -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; |
||||
} |
||||
} |
@ -0,0 +1,18 @@
|
||||
package com.fanruan.api.security; |
||||
|
||||
import java.util.*; |
||||
|
||||
import com.fr.stable.CommonCodeUtils; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
|
||||
public class SecurityKitTest { |
||||
@Test |
||||
public void passwordDecode(){ |
||||
Assert.assertEquals(SecurityKit.passwordDecode("1234"), CommonCodeUtils.passwordDecode("1234")); |
||||
} |
||||
@Test |
||||
public void passwordEncode(){ |
||||
Assert.assertEquals(SecurityKit.passwordEncode("1234"), CommonCodeUtils.passwordEncode("1234")); |
||||
} |
||||
} |
Loading…
Reference in new issue