File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
src/test/java/org/apache/ibatis/migration Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
4
- Copyright 2010-2024 the original author or authors.
4
+ Copyright 2010-2025 the original author or authors.
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
206
206
<profile >
207
207
<id >security-manager</id >
208
208
<activation >
209
- <jdk >[18,)</jdk >
209
+ <jdk >[18,24 )</jdk >
210
210
</activation >
211
211
<properties >
212
212
<argLine >-Djava.security.manager=allow</argLine >
Original file line number Diff line number Diff line change 45
45
import org .junit .jupiter .api .Order ;
46
46
import org .junit .jupiter .api .Test ;
47
47
import org .junit .jupiter .api .TestMethodOrder ;
48
+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
48
49
49
50
import uk .org .webcompere .systemstubs .SystemStubs ;
50
51
@@ -307,6 +308,7 @@ void testUndoScriptCommand() throws Exception {
307
308
assertTrue (output .contains ("-- @UNDO" ));
308
309
}
309
310
311
+ @ EnabledForJreRange (maxVersion = 23 )
310
312
@ Test
311
313
void shouldScriptCommandFailIfSameVersion () throws Exception {
312
314
String output = SystemStubs .tapSystemOut (() -> {
@@ -435,6 +437,7 @@ void shouldColorizeSuccessOutputIfColorOptionEnabled() throws Throwable {
435
437
assertTrue (TestUtil .deleteDirectory (basePath ), "delete temp dir" );
436
438
}
437
439
440
+ @ EnabledForJreRange (maxVersion = 23 )
438
441
@ Test
439
442
void shouldColorizeFailureOutputIfColorOptionEnabled () throws Throwable {
440
443
System .setProperty ("migrationsHome" , TestUtil .getTempDir ().getAbsolutePath ());
@@ -449,6 +452,7 @@ void shouldColorizeFailureOutputIfColorOptionEnabled() throws Throwable {
449
452
assertTrue (TestUtil .deleteDirectory (basePath ), "delete temp dir" );
450
453
}
451
454
455
+ @ EnabledForJreRange (maxVersion = 23 )
452
456
@ Test
453
457
void shouldShowErrorOnMissingChangelog () throws Throwable {
454
458
// gh-220
Original file line number Diff line number Diff line change 33
33
import org .apache .ibatis .migration .utils .TestUtil ;
34
34
import org .apache .ibatis .migration .utils .Util ;
35
35
import org .junit .jupiter .api .Test ;
36
+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
36
37
37
38
import uk .org .webcompere .systemstubs .SystemStubs ;
38
39
@@ -55,6 +56,7 @@ void shouldRunNewHooks() throws Throwable {
55
56
assertTrue (TestUtil .deleteDirectory (basePath ), "delete test dir" );
56
57
}
57
58
59
+ @ EnabledForJreRange (maxVersion = 23 )
58
60
@ Test
59
61
void shouldNotCreateFileWhenBeforeHookThrowsException () throws Throwable {
60
62
File basePath = initBaseDir ();
You can’t perform that action at this time.
0 commit comments