blob: 20125f1080481d0bd603b67fa48627dc3b36f716 [file] [log] [blame]
/*
* Copyright (c) 2017 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.creation.bytebuddy;
import net.bytebuddy.dynamic.loading.ClassLoadingStrategy;
class SubclassInjectionLoader implements SubclassLoader {
@Override
public ClassLoadingStrategy<ClassLoader> getStrategy(Class<?> mockedType) {
return ClassLoadingStrategy.Default.INJECTION.with(mockedType.getProtectionDomain());
}
}