|
1 | 1 | /* |
2 | | - Copyright 2021 The TensorFlow Authors. All Rights Reserved. |
| 2 | + Copyright 2021 The TensorFlow Authors. All Rights Reserved. |
3 | 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 |
| 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 | 7 |
|
8 | | - http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
9 | 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 | | - ======================================================================= |
| 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 | 16 |
|
17 | | - */ |
| 17 | +*/ |
18 | 18 | package org.tensorflow; |
19 | 19 |
|
20 | 20 | import static org.junit.jupiter.api.Assertions.assertEquals; |
|
24 | 24 | public class MultiReleaseTest { |
25 | 25 |
|
26 | 26 | @Test |
27 | | - public void testMultirelease(){ |
| 27 | + public void testMultirelease() { |
28 | 28 | String javaVersion = System.getProperty("java.version"); |
29 | 29 | System.out.println("Testing on Java version " + javaVersion); |
30 | 30 | int value = MRTest.version(); |
31 | | - if(javaVersion.compareTo("9") >= 0){ |
| 31 | + if (javaVersion.compareTo("9") >= 0) { |
32 | 32 | assertEquals(9, value); |
33 | 33 | } else { |
34 | 34 | assertEquals(8, value); |
35 | 35 | } |
36 | 36 | } |
37 | | - |
38 | 37 | } |
0 commit comments