File tree 2 files changed +60
-3
lines changed
src/test/java/org/fusesource/jansi/internal
2 files changed +60
-3
lines changed Original file line number Diff line number Diff line change 32
32
<description >Jansi is a java library for generating and interpreting ANSI escape sequences.</description >
33
33
34
34
<properties >
35
+ <javadocSource >6</javadocSource >
36
+ <jdkTarget >1.7</jdkTarget >
35
37
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
38
<slf4j-version >1.6.1</slf4j-version >
37
39
<project .build.outputTimestamp>2021-02-11T16:12:43Z</project .build.outputTimestamp>
149
151
<version >3.8.1</version >
150
152
<configuration >
151
153
<!-- parent pom 1.11 forces version instead of using property -->
152
- <source >1.6 </source >
153
- <target >1.6 </target >
154
+ <source >${jdkTarget} </source >
155
+ <target >${jdkTarget} </target >
154
156
</configuration >
155
157
</plugin >
156
158
<plugin >
252
254
<version >false</version >
253
255
<author >true</author >
254
256
<keywords >true</keywords >
255
- <source >6 </source >
257
+ <source >${javadocSource} </source >
256
258
</configuration >
257
259
<executions >
258
260
<execution >
334
336
</dependency >
335
337
</dependencies >
336
338
339
+ <profiles >
340
+ <profile >
341
+ <id >jdk15+</id >
342
+ <activation >
343
+ <jdk >[15,)</jdk >
344
+ </activation >
345
+ <properties >
346
+ <jdkTarget >1.7</jdkTarget >
347
+ <javadocSource >7</javadocSource >
348
+ </properties >
349
+ </profile >
350
+ </profiles >
351
+
337
352
</project >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2009-2021 the original author(s).
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package org .fusesource .jansi .internal ;
17
+
18
+ import java .io .File ;
19
+
20
+ import org .junit .jupiter .api .Test ;
21
+ import org .junit .jupiter .api .condition .DisabledOnJre ;
22
+ import org .junit .jupiter .api .condition .DisabledOnOs ;
23
+ import org .junit .jupiter .api .condition .JRE ;
24
+ import org .junit .jupiter .api .condition .OS ;
25
+
26
+ @ DisabledOnOs (OS .WINDOWS )
27
+ @ DisabledOnJre ({JRE .JAVA_15 , JRE .JAVA_16 })
28
+ public class CLibraryTest {
29
+
30
+ @ Test
31
+ void testChdir () {
32
+ File d = new File ("target/tstDir" );
33
+ d .mkdirs ();
34
+ CLibrary .chdir (d .getAbsolutePath ());
35
+ }
36
+
37
+ @ Test
38
+ void testSetenv () {
39
+ CLibrary .setenv ("MY_NAME" , "myValue" );
40
+ }
41
+
42
+ }
You can’t perform that action at this time.
0 commit comments