From c0f73faaaedc47c62bc1fdb9b727185d6e2e2806 Mon Sep 17 00:00:00 2001 From: greerdv Date: Mon, 18 Oct 2021 11:47:41 +0100 Subject: [PATCH] remove no longer useful test Signed-off-by: greerdv --- .../Tests/ShapeColliderComponentTests.cpp | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/Gems/PhysX/Code/Tests/ShapeColliderComponentTests.cpp b/Gems/PhysX/Code/Tests/ShapeColliderComponentTests.cpp index cbaf4b4625..fce427d9d3 100644 --- a/Gems/PhysX/Code/Tests/ShapeColliderComponentTests.cpp +++ b/Gems/PhysX/Code/Tests/ShapeColliderComponentTests.cpp @@ -338,33 +338,6 @@ namespace PhysXEditorTests ValidateInvalidEditorShapeColliderComponentParams(0.f, -1.f); } - TEST_F(PhysXEditorFixture, EditorShapeColliderComponent_ShapeColliderWithUnsupportedShape_HandledGracefully) - { - UnitTest::ErrorHandler unsupportedShapeWarningHandler("Unsupported shape"); - UnitTest::ErrorHandler rigidBodyWarningHandler("No Collider or Shape information found when creating Rigid body"); - - // create an editor entity with a shape collider component and a cylinder shape component - // the cylinder shape is not currently supported by the shape collider component - EntityPtr editorEntity = CreateInactiveEditorEntity("ShapeColliderComponentEditorEntity"); - editorEntity->CreateComponent(); - editorEntity->CreateComponent(LmbrCentral::EditorCompoundShapeComponentTypeId); - editorEntity->Activate(); - - EXPECT_EQ(unsupportedShapeWarningHandler.GetExpectedWarningCount(), 1); - EXPECT_EQ(rigidBodyWarningHandler.GetExpectedWarningCount(), 1); - - EntityPtr gameEntity = CreateActiveGameEntityFromEditorEntity(editorEntity.get()); - - // since there was no editor rigid body component, the runtime entity should have a static rigid body - const auto* staticBody = azdynamic_cast(gameEntity->FindComponent()->GetSimulatedBody()); - const auto* pxRigidStatic = static_cast(staticBody->GetNativePointer()); - - PHYSX_SCENE_READ_LOCK(pxRigidStatic->getScene()); - - // there should be no shapes on the rigid body because the cylinder is not supported - EXPECT_EQ(pxRigidStatic->getNbShapes(), 0); - } - TEST_F(PhysXEditorFixture, EditorShapeColliderComponent_ShapeColliderWithBoxAndRigidBody_CorrectRuntimeComponents) { // create an editor entity with a shape collider component and a box shape component