File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
gwtmockito/src/main/java/com/google/gwtmockito Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,12 @@ protected Collection<String> getPackagesToLoadViaStandardClassloader() {
261
261
packages .add ("com.vladium" ); // To support EMMA code coverage tools
262
262
packages .add ("jdk.internal.reflect" ); // Java9 loading mechanism
263
263
packages .add ("net.bytebuddy" ); // To support Mockito 2
264
+ packages .add ("net.sf.cglib" ); // To support Mockito 1
264
265
packages .add ("net.sourceforge.cobertura" ); // To support Cobertura code coverage tools
265
266
packages .add ("org.jacoco" ); // To support JaCoCo code coverage tools
266
267
packages .add ("org.hamcrest" ); // Since this package is referenced directly from org.junit
267
268
packages .add ("org.junit" ); // Make sure the ParentRunner can recognize annotations like @Test
269
+ packages .add ("org.mockito.cglib" ); // To support Mockito 1
268
270
269
271
WithPackagesToLoadViaStandardClassLoader annotation = unitTestClass .getAnnotation (WithPackagesToLoadViaStandardClassLoader .class );
270
272
if (annotation != null ) {
@@ -402,6 +404,7 @@ private final class GwtMockitoClassLoader extends Loader implements Translator {
402
404
super (classLoader == null ? GwtMockitoTestRunner .class .getClassLoader () : classLoader , classPool );
403
405
try {
404
406
addTranslator (classPool , this );
407
+ setDomain (getClass ().getProtectionDomain ());
405
408
} catch (NotFoundException e ) {
406
409
throw new AssertionError ("Impossible since this.start does not throw" );
407
410
} catch (CannotCompileException e ) {
Original file line number Diff line number Diff line change 72
72
<dependency >
73
73
<groupId >org.javassist</groupId >
74
74
<artifactId >javassist</artifactId >
75
- <version >3.22 .0-GA</version >
75
+ <version >3.25 .0-GA</version >
76
76
</dependency >
77
77
78
78
<dependency >
You can’t perform that action at this time.
0 commit comments