Remove @Disabled on LifeCycleListenerNestedTest

This commit is contained in:
Joakim Erdfelt 2023-01-04 14:26:19 -06:00
parent 4c1843f2fb
commit eb8152094d
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 4 additions and 8 deletions

View File

@ -17,7 +17,6 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.hamcrest.Matcher; import org.hamcrest.Matcher;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
@ -28,7 +27,6 @@ import static org.hamcrest.Matchers.is;
* Testing for LifeCycleListener events on nested components * Testing for LifeCycleListener events on nested components
* during runtime. * during runtime.
*/ */
@Disabled
public class LifeCycleListenerNestedTest public class LifeCycleListenerNestedTest
{ {
// Set this true to use test-specific workaround. // Set this true to use test-specific workaround.
@ -78,12 +76,10 @@ public class LifeCycleListenerNestedTest
Bar other = (Bar)obj; Bar other = (Bar)obj;
if (id == null) if (id == null)
{ {
if (other.id != null) return other.id == null;
return false;
} }
else if (!id.equals(other.id)) else
return false; return id.equals(other.id);
return true;
} }
@Override @Override
@ -93,7 +89,7 @@ public class LifeCycleListenerNestedTest
} }
} }
public static enum LifeCycleEvent public enum LifeCycleEvent
{ {
STARTING, STARTING,
STARTED, STARTED,