diff --git a/src/test/java/org/terasology/moduletestingenvironment/AssetLoadingTest.java b/src/test/java/org/terasology/moduletestingenvironment/AssetLoadingTest.java index f347b96..6541a6d 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/AssetLoadingTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/AssetLoadingTest.java @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 package org.terasology.moduletestingenvironment; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.entitySystem.prefab.Prefab; @@ -15,6 +16,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.terasology.engine.testUtil.Assertions.assertNotEmpty; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class AssetLoadingTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/ClientConnectionTest.java b/src/test/java/org/terasology/moduletestingenvironment/ClientConnectionTest.java index 980a8de..b587423 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/ClientConnectionTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/ClientConnectionTest.java @@ -3,6 +3,7 @@ package org.terasology.moduletestingenvironment; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.context.Context; @@ -13,6 +14,7 @@ import java.io.IOException; import java.util.List; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class ClientConnectionTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/ComponentSystemTest.java b/src/test/java/org/terasology/moduletestingenvironment/ComponentSystemTest.java index 5274842..9a300f7 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/ComponentSystemTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/ComponentSystemTest.java @@ -1,21 +1,9 @@ -/* - * Copyright 2020 MovingBlocks - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2021 The Terasology Foundation +// SPDX-License-Identifier: Apache-2.0 package org.terasology.moduletestingenvironment; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.entitySystem.entity.EntityManager; @@ -25,6 +13,7 @@ import org.terasology.moduletestingenvironment.fixtures.DummyEvent; import org.terasology.engine.registry.In; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class ComponentSystemTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/DeprecationTest.java b/src/test/java/org/terasology/moduletestingenvironment/DeprecationTest.java index 7efe285..ec09a89 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/DeprecationTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/DeprecationTest.java @@ -6,6 +6,7 @@ import org.joml.Vector3f; import org.joml.Vector3i; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.context.Context; @@ -24,6 +25,7 @@ /** * The ExampleTest but using the old (deprecated) API */ +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class DeprecationTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/ExampleTest.java b/src/test/java/org/terasology/moduletestingenvironment/ExampleTest.java index b0ac74e..c0e1906 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/ExampleTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/ExampleTest.java @@ -5,6 +5,7 @@ import com.google.common.collect.Lists; import org.joml.Vector3i; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.context.Context; @@ -20,7 +21,7 @@ import java.io.IOException; - +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class ExampleTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/NestedTest.java b/src/test/java/org/terasology/moduletestingenvironment/NestedTest.java index 205dd96..65d8066 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/NestedTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/NestedTest.java @@ -1,16 +1,18 @@ -// Copyright 2020 The Terasology Foundation +// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.moduletestingenvironment; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.entitySystem.entity.EntityManager; import org.terasology.moduletestingenvironment.extension.Dependencies; import org.terasology.engine.registry.In; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class NestedTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/SubclassInjectionTest.java b/src/test/java/org/terasology/moduletestingenvironment/SubclassInjectionTest.java index 4f0e354..f5792ae 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/SubclassInjectionTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/SubclassInjectionTest.java @@ -1,14 +1,16 @@ -// Copyright 2020 The Terasology Foundation +// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.moduletestingenvironment; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.moduletestingenvironment.extension.Dependencies; import org.terasology.moduletestingenvironment.fixtures.BaseTestingClass; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class SubclassInjectionTest extends BaseTestingClass { diff --git a/src/test/java/org/terasology/moduletestingenvironment/TestEventReceiverTest.java b/src/test/java/org/terasology/moduletestingenvironment/TestEventReceiverTest.java index 685540a..18813ba 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/TestEventReceiverTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/TestEventReceiverTest.java @@ -1,21 +1,9 @@ -/* - * Copyright 2020 MovingBlocks - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2021 The Terasology Foundation +// SPDX-License-Identifier: Apache-2.0 package org.terasology.moduletestingenvironment; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.engine.context.Context; @@ -32,6 +20,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.function.BiConsumer; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class TestEventReceiverTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/WorldProviderTest.java b/src/test/java/org/terasology/moduletestingenvironment/WorldProviderTest.java index ee8b686..bc12879 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/WorldProviderTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/WorldProviderTest.java @@ -1,22 +1,10 @@ -/* - * Copyright 2020 MovingBlocks - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2021 The Terasology Foundation +// SPDX-License-Identifier: Apache-2.0 package org.terasology.moduletestingenvironment; import org.joml.Vector3i; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.terasology.moduletestingenvironment.extension.Dependencies; @@ -24,6 +12,7 @@ import org.terasology.engine.world.WorldProvider; import org.terasology.engine.world.block.BlockManager; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class WorldProviderTest { diff --git a/src/test/java/org/terasology/moduletestingenvironment/delay/DelayManagerTest.java b/src/test/java/org/terasology/moduletestingenvironment/delay/DelayManagerTest.java index 39dd17d..f020bb8 100644 --- a/src/test/java/org/terasology/moduletestingenvironment/delay/DelayManagerTest.java +++ b/src/test/java/org/terasology/moduletestingenvironment/delay/DelayManagerTest.java @@ -5,6 +5,7 @@ import com.google.common.collect.Lists; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.slf4j.Logger; @@ -23,6 +24,7 @@ import java.io.IOException; +@Tag("MteTest") @ExtendWith(MTEExtension.class) @Dependencies({"engine", "ModuleTestingEnvironment"}) public class DelayManagerTest {