Skip to content

Commit

Permalink
fix test after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rymsha committed Mar 18, 2023
1 parent a4acd10 commit 1ba1184
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.enonic.xp.admin.impl.widget;

import java.util.Objects;

import org.junit.jupiter.api.Test;

import com.enonic.xp.admin.widget.WidgetDescriptor;
Expand All @@ -11,6 +13,7 @@
import com.enonic.xp.resource.ResourceKey;
import com.enonic.xp.security.PrincipalKey;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertSame;
Expand Down Expand Up @@ -62,7 +65,7 @@ public void testCreateDefault()
public void testFind()
{
final DescriptorKeys keys = this.loader.find( ApplicationKey.from( "myapp1" ) );
assertEquals( "[myapp1:widget1, myapp1:widget2]", keys.toString() );
assertThat( keys ).map( Objects::toString ).containsExactlyInAnyOrder( "myapp1:widget1", "myapp1:widget2" );
}

@Test
Expand Down

0 comments on commit 1ba1184

Please sign in to comment.