Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ public class PatternAwareEObjectDescriptionLookUpTest {
private static final String FOO_BAR = "FooBar";
private static final String FOO_PREFIX = "Foo*";
private static final String OTHER = "Other";
private static final String OTHER_LOWER_CASE = "other";

private final PatternAwareEObjectDescriptionLookUp lookUp = new PatternAwareEObjectDescriptionLookUp(List.of(//
description(FOO), description(FOO_BAR), description("foobar"), description(OTHER)));
description(FOO), description(FOO_BAR), description("foobar"), description(OTHER), description(OTHER_LOWER_CASE)));

@Test
public void testCaseSensitivePatternMatchesCandidateNames() {
assertEquals(ImmutableSet.of(FOO, FOO_BAR), names(lookUp.getExportedObjects(EcorePackage.Literals.ECLASS, QualifiedNamePattern.create(FOO_PREFIX), false)));
}

@Test
public void testCaseSensitiveExactPattern() {
assertEquals(ImmutableSet.of(OTHER), names(lookUp.getExportedObjects(EcorePackage.Literals.ECLASS, QualifiedNamePattern.create(OTHER), false)));
Expand Down