Skip to content

Commit 2f23f2b

Browse files
committed
Make Ant completion test more detailed
Test for mkdir is to start with `mkd` before requesting complete instead of just `mk` to prevent finding 1.10.16 added mklink tag. That way tests will continue to work proper on both older and newer And versions.
1 parent 0b722c8 commit 2f23f2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/CodeCompletionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2002, 2014 GEBIT Gesellschaft fuer EDV-Beratung
2+
* Copyright (c) 2002, 2026 GEBIT Gesellschaft fuer EDV-Beratung
33
* und Informatik-Technologien mbH,
44
* Berlin, Duesseldorf, Frankfurt (Germany) and others.
55
*
@@ -691,8 +691,8 @@ public void testTaskProposals() {
691691
proposal = proposals[0];
692692
assertEquals("classpath", proposal.getDisplayString()); //$NON-NLS-1$
693693

694-
// "<project><target><mk"
695-
proposals = processor.getTaskProposals("<project><target><mk", "target", "mk"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
694+
// "<project><target><mkd"
695+
proposals = processor.getTaskProposals("<project><target><mkd", "target", "mkd"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
696696
assertThat(proposals).hasSize(1);
697697
proposal = proposals[0];
698698
assertEquals("mkdir", proposal.getDisplayString()); //$NON-NLS-1$

0 commit comments

Comments
 (0)