HHH-14828 Disable bytecode enhancement test on final fields for javassist
This commit is contained in:
parent
2fbfaa63bc
commit
02f22e1e6f
|
@ -26,6 +26,7 @@ import org.hibernate.testing.bytecode.enhancement.BytecodeEnhancerRunner;
|
||||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||||
import org.junit.Assume;
|
import org.junit.Assume;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
|
@ -41,8 +42,8 @@ public class FinalFieldEnhancementTest extends BaseCoreFunctionalTestCase {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@BeforeClass
|
||||||
public void checkBytebuddy() {
|
public static void checkBytebuddy() {
|
||||||
String byteCodeProvider = Environment.getProperties().getProperty( AvailableSettings.BYTECODE_PROVIDER );
|
String byteCodeProvider = Environment.getProperties().getProperty( AvailableSettings.BYTECODE_PROVIDER );
|
||||||
// skip the test if the bytecode provider is Javassist
|
// skip the test if the bytecode provider is Javassist
|
||||||
Assume.assumeTrue( "This test will only pass with Bytebuddy bytecode enhancement (currently using '"
|
Assume.assumeTrue( "This test will only pass with Bytebuddy bytecode enhancement (currently using '"
|
||||||
|
|
Loading…
Reference in New Issue