|
1 | | -/* |
2 | | - * Copyright (c) 2016, 2017, 2018, 2019 FabricMC |
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 | | - |
17 | | -package net.fabricmc.fabric.test.base; |
18 | | - |
19 | | -import org.junit.jupiter.api.BeforeAll; |
20 | | -import org.junit.jupiter.api.Test; |
21 | | -import org.spongepowered.asm.mixin.MixinEnvironment; |
22 | | - |
23 | | -import net.minecraft.SharedConstants; |
24 | | -import net.minecraft.server.Bootstrap; |
25 | | - |
26 | | -/** |
27 | | - * A simple unit test that forces Mixin to load and apply all mixins. |
28 | | - * |
29 | | - * <p>This test is useful when porting to a new version as you don't need to wait for the game to load to check for mixin errors. |
30 | | - */ |
31 | | -public class MixinAuditTest { |
32 | | - @BeforeAll |
33 | | - static void beforeAll() { |
34 | | - SharedConstants.tryDetectVersion(); |
35 | | - Bootstrap.bootStrap(); |
36 | | - } |
37 | | - |
38 | | - @Test |
39 | | - void auditMixins() { |
40 | | - MixinEnvironment.getCurrentEnvironment().audit(); |
41 | | - } |
42 | | -} |
| 1 | +///* |
| 2 | +// * Copyright (c) 2016, 2017, 2018, 2019 FabricMC |
| 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 | +// |
| 17 | +//package net.fabricmc.fabric.test.base; |
| 18 | +// |
| 19 | +//import org.junit.jupiter.api.BeforeAll; |
| 20 | +//import org.junit.jupiter.api.Test; |
| 21 | +//import org.spongepowered.asm.mixin.MixinEnvironment; |
| 22 | +// |
| 23 | +//import net.minecraft.SharedConstants; |
| 24 | +//import net.minecraft.server.Bootstrap; |
| 25 | +// |
| 26 | +///** |
| 27 | +// * A simple unit test that forces Mixin to load and apply all mixins. |
| 28 | +// * |
| 29 | +// * <p>This test is useful when porting to a new version as you don't need to wait for the game to load to check for mixin errors. |
| 30 | +// */ |
| 31 | +//public class MixinAuditTest { |
| 32 | +// @BeforeAll |
| 33 | +// static void beforeAll() { |
| 34 | +// SharedConstants.tryDetectVersion(); |
| 35 | +// Bootstrap.bootStrap(); |
| 36 | +// } |
| 37 | +// |
| 38 | +// @Test |
| 39 | +// void auditMixins() { |
| 40 | +// MixinEnvironment.getCurrentEnvironment().audit(); |
| 41 | +// } |
| 42 | +//} |
0 commit comments