You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
677 B
29 lines
677 B
package com.fr.base; |
|
|
|
import com.fr.form.main.Form; |
|
import com.fr.invoke.ClassHelper; |
|
import com.fr.main.impl.WorkBook; |
|
import java.util.Set; |
|
import junit.framework.TestCase; |
|
import org.junit.Assert; |
|
|
|
|
|
/** |
|
* @author hades |
|
* @version 10.0 |
|
* Created by hades on 2020/12/28 |
|
*/ |
|
public class ClassHelperTest extends TestCase { |
|
|
|
|
|
public void testGetClassLoaders() { |
|
WorkBook workBook = new WorkBook(); |
|
Set<ClassLoader> set = ClassHelper.getClassLoaders(workBook); |
|
Assert.assertFalse(set.isEmpty()); |
|
Form form = new Form(); |
|
Set<ClassLoader> set1 = ClassHelper.getClassLoaders(form); |
|
Assert.assertFalse(set1.isEmpty()); |
|
|
|
} |
|
|
|
} |