diff --git a/source/core/src/test/com/csse3200/game/entities/factories/ProjectileFactoryTest.java b/source/core/src/test/com/csse3200/game/entities/factories/ProjectileFactoryTest.java index d8ac912be..0882ec6e1 100644 --- a/source/core/src/test/com/csse3200/game/entities/factories/ProjectileFactoryTest.java +++ b/source/core/src/test/com/csse3200/game/entities/factories/ProjectileFactoryTest.java @@ -38,7 +38,6 @@ class ProjectileFactoryTest { private Entity projectile; - @Disabled @BeforeEach public void setUp() { GameTime gameTime = mock(GameTime.class); @@ -56,31 +55,27 @@ public void setUp() { // ServiceLocator.getResourceService() // .getAsset("images/projectiles/basic_projectile.atlas", TextureAtlas.class); Vector2 destination = new Vector2(0.1f, 0.1f); - Vector2 speed = new Vector2(0.2f, 0.2f); + projectile = ProjectileFactory.createBaseProjectile(destination); } - @Disabled @Test public void testBaseProjectileNotNull() { assertNotNull(projectile, "Base projectile is null"); } - @Disabled @Test public void testBaseProjectileHitbox() { assertNotNull(projectile.getComponent(HitboxComponent.class), "Projectile does not contain Hotbox component"); } - @Disabled @Test public void testBaseProjectilePhysics() { assertNotNull(projectile.getComponent(PhysicsComponent.class), "Projectile does not have Physics component"); } - @Disabled @Test public void testBaseProjectilePhysicsMovement() { assertNotNull(projectile.getComponent(PhysicsMovementComponent.class),