Skip to content

Commit

Permalink
refactor: annotations of Behaviors (#116)
Browse files Browse the repository at this point in the history
* Reformating annotations for BehavoirTests and MovementTests
* Applying pipeline suggestions
  • Loading branch information
manumafe98 authored Jan 6, 2024
1 parent 20654b8 commit f1b811b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,25 @@

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.terasology.engine.entitySystem.entity.EntityManager;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.entitySystem.prefab.Prefab;
import org.terasology.engine.integrationenvironment.jupiter.Dependencies;
import org.terasology.engine.integrationenvironment.jupiter.MTEExtension;
import org.terasology.engine.logic.behavior.BehaviorComponent;
import org.terasology.engine.logic.behavior.asset.BehaviorTree;
import org.terasology.engine.registry.In;
import org.terasology.gestalt.assets.ResourceUrn;
import org.terasology.gestalt.assets.management.AssetManager;
import org.terasology.engine.integrationenvironment.jupiter.IntegrationEnvironment;

import java.util.Optional;
import java.util.stream.Stream;


@ExtendWith(MTEExtension.class)
@Dependencies("Behaviors")
@Tag("MteTest")
@IntegrationEnvironment(dependencies = "Behaviors")
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class BehaviorTests {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
Expand All @@ -22,8 +20,6 @@
import org.terasology.engine.entitySystem.entity.EntityManager;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.integrationenvironment.ModuleTestingHelper;
import org.terasology.engine.integrationenvironment.jupiter.Dependencies;
import org.terasology.engine.integrationenvironment.jupiter.MTEExtension;
import org.terasology.engine.logic.characters.CharacterMovementComponent;
import org.terasology.engine.logic.location.LocationComponent;
import org.terasology.engine.physics.engine.PhysicsEngine;
Expand All @@ -35,14 +31,13 @@
import org.terasology.engine.world.block.BlockRegionc;
import org.terasology.engine.world.block.Blocks;
import org.terasology.module.behaviors.components.MinionMoveComponent;
import org.terasology.engine.integrationenvironment.jupiter.IntegrationEnvironment;

import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@Dependencies("Behaviors")
@Tag("MteTest")
@ExtendWith(MTEExtension.class)
@IntegrationEnvironment(dependencies = "Behaviors")
public class MovementTests {
private static final Logger logger = LoggerFactory.getLogger(MovementTests.class);

Expand Down

0 comments on commit f1b811b

Please sign in to comment.