1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Content Assist Work: More JUnit tests

This commit is contained in:
Hoda Amer 2004-01-21 21:45:19 +00:00
parent c44ab7ec78
commit e1fcb18b59
17 changed files with 92 additions and 89 deletions

View file

@ -1,3 +1,6 @@
2004-01-21 Hoda Amer
Renamed completion tests to be more meaningful.
2004-01-21 Hoda Amer 2004-01-21 Hoda Amer
Added more JUnit tests for Content Assist Added more JUnit tests for Content Assist

View file

@ -36,23 +36,23 @@ public class AutomatedSuite extends TestSuite {
// Success Tests // Success Tests
addTest(PartitionTokenScannerTest.suite()); addTest(PartitionTokenScannerTest.suite());
addTest(TextBufferTest.suite()); addTest(TextBufferTest.suite());
addTest(CompletionProposalsTest1.suite()); addTest(CompletionTest_StatementStart_Prefix.suite());
addTest(CompletionProposalsTest2.suite()); addTest(CompletionTest_MemberReference_Dot_Prefix.suite());
addTest(CompletionProposalsTest3.suite()); addTest(CompletionTest_VariableType_Prefix.suite());
addTest(CompletionProposalsTest4.suite()); addTest(CompletionTest_FieldType_Prefix.suite());
addTest(CompletionProposalsTest5.suite()); addTest(CompletionTest_StatementStart_NoPrefix.suite());
addTest(CompletionProposalsTest6.suite()); addTest(CompletionTest_MemberReference_Arrow_Prefix.suite());
addTest(CompletionProposalsTest7.suite()); addTest(CompletionTest_MemberReference_Arrow_Prefix2.suite());
addTest(CompletionProposalsTest8.suite()); addTest(CompletionTest_SingleName_Prefix.suite());
addTest(CompletionProposalsTest9.suite()); addTest(CompletionTest_MemberReference_Dot_NoPrefix.suite());
addTest(CompletionProposalsTest10.suite()); addTest(CompletionTest_MemberReference_Arrow_NoPrefix.suite());
addTest(CompletionProposalsTest11.suite()); addTest(CompletionTest_VariableType_NoPrefix.suite());
addTest(CompletionProposalsTest12.suite()); addTest(CompletionTest_FieldType_NoPrefix.suite());
// Failed Tests // Failed Tests
addTest(CompletionProposalsFailedTest1.suite()); addTest(CompletionFailedTest_ScopedReference_NoPrefix_Bug50152.suite());
addTest(CompletionProposalsFailedTest2.suite()); addTest(CompletionFailedTest_ScopedReference_Prefix_Bug50152.suite());
addTest(CompletionProposalsFailedTest3.suite()); addTest(CompletionFailedTest_FieldType_NoPrefix_Bug50344.suite());
} }

View file

@ -18,10 +18,10 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Class scope, declaration start, with NO prefix * Testing Field_Type, with NO prefix
* *
*/ */
public class CompletionProposalsTest12 extends CompletionProposalsBaseTest{ public class CompletionTest_FieldType_NoPrefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart12.h"; private final String fileName = "CompletionTestStart12.h";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -33,13 +33,13 @@ public class CompletionProposalsTest12 extends CompletionProposalsBaseTest{
private final String[] expectedResults = { private final String[] expectedResults = {
}; };
public CompletionProposalsTest12(String name) { public CompletionTest_FieldType_NoPrefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest12.class.getName()); TestSuite suite= new TestSuite(CompletionTest_FieldType_NoPrefix.class.getName());
suite.addTest(new CompletionProposalsTest12("testCompletionProposals")); suite.addTest(new CompletionTest_FieldType_NoPrefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,10 +17,10 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Class scope, declaration start, with a prefix * Testing Field_Type completion kind , with a prefix
* *
*/ */
public class CompletionProposalsTest4 extends CompletionProposalsBaseTest{ public class CompletionTest_FieldType_Prefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart4.h"; private final String fileName = "CompletionTestStart4.h";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -38,13 +38,13 @@ public class CompletionProposalsTest4 extends CompletionProposalsBaseTest{
"AStruct" "AStruct"
}; };
public CompletionProposalsTest4(String name) { public CompletionTest_FieldType_Prefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest4.class.getName()); TestSuite suite= new TestSuite(CompletionTest_FieldType_Prefix.class.getName());
suite.addTest(new CompletionProposalsTest4("testCompletionProposals")); suite.addTest(new CompletionTest_FieldType_Prefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,12 +17,12 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, a class context, with NO prefix * Testing Member_Reference, with NO prefix
* After an -> * After an ->
* *
*/ */
public class CompletionProposalsTest10 extends CompletionProposalsBaseTest{ public class CompletionTest_MemberReference_Arrow_NoPrefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart10.cpp"; private final String fileName = "CompletionTestStart10.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -38,13 +38,13 @@ public class CompletionProposalsTest10 extends CompletionProposalsBaseTest{
"xAClassMethod(int) void" "xAClassMethod(int) void"
}; };
public CompletionProposalsTest10(String name) { public CompletionTest_MemberReference_Arrow_NoPrefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest10.class.getName()); TestSuite suite= new TestSuite(CompletionTest_MemberReference_Arrow_NoPrefix.class.getName());
suite.addTest(new CompletionProposalsTest10("testCompletionProposals")); suite.addTest(new CompletionTest_MemberReference_Arrow_NoPrefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,11 +17,11 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, a class context, with a prefix * Testing Member_Reference, with a prefix
* After an -> * After an ->
* *
*/ */
public class CompletionProposalsTest6 extends CompletionProposalsBaseTest{ public class CompletionTest_MemberReference_Arrow_Prefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart6.cpp"; private final String fileName = "CompletionTestStart6.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -35,13 +35,13 @@ public class CompletionProposalsTest6 extends CompletionProposalsBaseTest{
"aMethod() int" "aMethod() int"
}; };
public CompletionProposalsTest6(String name) { public CompletionTest_MemberReference_Arrow_Prefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest6.class.getName()); TestSuite suite= new TestSuite(CompletionTest_MemberReference_Arrow_Prefix.class.getName());
suite.addTest(new CompletionProposalsTest6("testCompletionProposals")); suite.addTest(new CompletionTest_MemberReference_Arrow_Prefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,11 +17,11 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, a class context, with a prefix * Testing Member_Reference, with a prefix
* Complex Context: Function return value: foo()->a(CTRL+SPACE) * Complex Context: Function return value: foo()->a(CTRL+SPACE)
* *
*/ */
public class CompletionProposalsTest7 extends CompletionProposalsBaseTest{ public class CompletionTest_MemberReference_Arrow_Prefix2 extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart7.cpp"; private final String fileName = "CompletionTestStart7.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -35,13 +35,13 @@ public class CompletionProposalsTest7 extends CompletionProposalsBaseTest{
"aMethod() int" "aMethod() int"
}; };
public CompletionProposalsTest7(String name) { public CompletionTest_MemberReference_Arrow_Prefix2(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest7.class.getName()); TestSuite suite= new TestSuite(CompletionTest_MemberReference_Arrow_Prefix2.class.getName());
suite.addTest(new CompletionProposalsTest7("testCompletionProposals")); suite.addTest(new CompletionTest_MemberReference_Arrow_Prefix2("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,11 +17,11 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, a class context, with NO prefix * Testing Member_Reference, with NO prefix
* After a . * After a .
* *
*/ */
public class CompletionProposalsTest9 extends CompletionProposalsBaseTest{ public class CompletionTest_MemberReference_Dot_NoPrefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart9.cpp"; private final String fileName = "CompletionTestStart9.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -37,13 +37,13 @@ public class CompletionProposalsTest9 extends CompletionProposalsBaseTest{
"xAClassMethod(int) void" "xAClassMethod(int) void"
}; };
public CompletionProposalsTest9(String name) { public CompletionTest_MemberReference_Dot_NoPrefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest9.class.getName()); TestSuite suite= new TestSuite(CompletionTest_MemberReference_Dot_NoPrefix.class.getName());
suite.addTest(new CompletionProposalsTest9("testCompletionProposals")); suite.addTest(new CompletionTest_MemberReference_Dot_NoPrefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,11 +17,11 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, a class context, with a prefix * Testing Member_Reference completion kind, with a prefix
* After a . * After a .
* *
*/ */
public class CompletionProposalsTest2 extends CompletionProposalsBaseTest{ public class CompletionTest_MemberReference_Dot_Prefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart2.cpp"; private final String fileName = "CompletionTestStart2.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -35,13 +35,13 @@ public class CompletionProposalsTest2 extends CompletionProposalsBaseTest{
"aMethod() int" "aMethod() int"
}; };
public CompletionProposalsTest2(String name) { public CompletionTest_MemberReference_Dot_Prefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest2.class.getName()); TestSuite suite= new TestSuite(CompletionTest_MemberReference_Dot_Prefix.class.getName());
suite.addTest(new CompletionProposalsTest2("testCompletionProposals")); suite.addTest(new CompletionTest_MemberReference_Dot_Prefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,10 +17,10 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, Macro lookups * Testing Single name reference, Macro lookups
* *
*/ */
public class CompletionProposalsTest8 extends CompletionProposalsBaseTest{ public class CompletionTest_SingleName_Prefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart8.cpp"; private final String fileName = "CompletionTestStart8.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -33,13 +33,13 @@ public class CompletionProposalsTest8 extends CompletionProposalsBaseTest{
"AMacro(x)" "AMacro(x)"
}; };
public CompletionProposalsTest8(String name) { public CompletionTest_SingleName_Prefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest8.class.getName()); TestSuite suite= new TestSuite(CompletionTest_SingleName_Prefix.class.getName());
suite.addTest(new CompletionProposalsTest8("testCompletionProposals")); suite.addTest(new CompletionTest_SingleName_Prefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,11 +17,11 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, statement start, with no prefix * Testing statement start, with no prefix
* Lookup.THIS * Lookup.THIS
* *
*/ */
public class CompletionProposalsTest5 extends CompletionProposalsBaseTest{ public class CompletionTest_StatementStart_NoPrefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart5.cpp"; private final String fileName = "CompletionTestStart5.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -35,13 +35,13 @@ public class CompletionProposalsTest5 extends CompletionProposalsBaseTest{
"anotherMethod() void" "anotherMethod() void"
}; };
public CompletionProposalsTest5(String name) { public CompletionTest_StatementStart_NoPrefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest5.class.getName()); TestSuite suite= new TestSuite(CompletionTest_StatementStart_NoPrefix.class.getName());
suite.addTest(new CompletionProposalsTest5("testCompletionProposals")); suite.addTest(new CompletionTest_StatementStart_NoPrefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,10 +17,10 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, statement start, with a prefix * Testing statement start completion kind, with a prefix
* *
*/ */
public class CompletionProposalsTest1 extends CompletionProposalsBaseTest{ public class CompletionTest_StatementStart_Prefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart1.cpp"; private final String fileName = "CompletionTestStart1.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
@ -44,13 +44,13 @@ public class CompletionProposalsTest1 extends CompletionProposalsBaseTest{
"AMacro(x)" "AMacro(x)"
}; };
public CompletionProposalsTest1(String name) { public CompletionTest_StatementStart_Prefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest1.class.getName()); TestSuite suite= new TestSuite(CompletionTest_StatementStart_Prefix.class.getName());
suite.addTest(new CompletionProposalsTest1("testCompletionProposals")); suite.addTest(new CompletionTest_StatementStart_Prefix("testCompletionProposals"));
return suite; return suite;
} }

View file

@ -17,10 +17,10 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Global scope, declaration start, with NO prefix * Testing Variable_type, with NO prefix
* *
*/ */
public class CompletionProposalsTest11 extends CompletionProposalsBaseTest{ public class CompletionTest_VariableType_NoPrefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart11.cpp"; private final String fileName = "CompletionTestStart11.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -32,13 +32,13 @@ public class CompletionProposalsTest11 extends CompletionProposalsBaseTest{
private final String[] expectedResults = { private final String[] expectedResults = {
}; };
public CompletionProposalsTest11(String name) { public CompletionTest_VariableType_NoPrefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest11.class.getName()); TestSuite suite= new TestSuite(CompletionTest_VariableType_NoPrefix.class.getName());
suite.addTest(new CompletionProposalsTest11("testCompletionProposals")); suite.addTest(new CompletionTest_VariableType_NoPrefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -17,10 +17,10 @@ import org.eclipse.cdt.core.parser.ast.IASTCompletionNode.CompletionKind;
/** /**
* @author hamer * @author hamer
* *
* Testing Global scope, declaration start, with a prefix * Testing Variable_type completion kind, with a prefix
* *
*/ */
public class CompletionProposalsTest3 extends CompletionProposalsBaseTest{ public class CompletionTest_VariableType_Prefix extends CompletionProposalsBaseTest{
private final String fileName = "CompletionTestStart3.cpp"; private final String fileName = "CompletionTestStart3.cpp";
private final String fileFullPath ="resources/contentassist/" + fileName; private final String fileFullPath ="resources/contentassist/" + fileName;
private final String headerFileName = "CompletionTestStart.h"; private final String headerFileName = "CompletionTestStart.h";
@ -37,13 +37,13 @@ public class CompletionProposalsTest3 extends CompletionProposalsBaseTest{
"AStruct" "AStruct"
}; };
public CompletionProposalsTest3(String name) { public CompletionTest_VariableType_Prefix(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsTest3.class.getName()); TestSuite suite= new TestSuite(CompletionTest_VariableType_Prefix.class.getName());
suite.addTest(new CompletionProposalsTest3("testCompletionProposals")); suite.addTest(new CompletionTest_VariableType_Prefix("testCompletionProposals"));
return suite; return suite;
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -22,7 +22,7 @@ import org.eclipse.cdt.ui.tests.text.contentassist.CompletionProposalsBaseTest;
* Bug#50344 :Wrong completion in Class scope if before the first declaration * Bug#50344 :Wrong completion in Class scope if before the first declaration
* *
*/ */
public class CompletionProposalsFailedTest3 extends CompletionProposalsBaseTest{ public class CompletionFailedTest_FieldType_NoPrefix_Bug50344 extends CompletionProposalsBaseTest{
private final String fileName = "CompletionFailedTestStart3.h"; private final String fileName = "CompletionFailedTestStart3.h";
private final String fileFullPath ="resources/contentassist/failedtests/" + fileName; private final String fileFullPath ="resources/contentassist/failedtests/" + fileName;
@ -35,13 +35,13 @@ public class CompletionProposalsFailedTest3 extends CompletionProposalsBaseTest
private final String[] expectedResults = { private final String[] expectedResults = {
}; };
public CompletionProposalsFailedTest3(String name) { public CompletionFailedTest_FieldType_NoPrefix_Bug50344(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsFailedTest3.class.getName()); TestSuite suite= new TestSuite(CompletionFailedTest_FieldType_NoPrefix_Bug50344.class.getName());
suite.addTest(new CompletionProposalsFailedTest3("testCompletionProposals")); suite.addTest(new CompletionFailedTest_FieldType_NoPrefix_Bug50344("testCompletionProposals"));
return suite; return suite;
} }

View file

@ -18,11 +18,11 @@ import org.eclipse.cdt.ui.tests.text.contentassist.CompletionProposalsBaseTest;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, Namespace context, with no prefix * Testing Scoped_Reference, with no prefix
* Bug#50152: Wrong context sent after a "::" * Bug#50152: Wrong context sent after a "::"
* *
*/ */
public class CompletionProposalsFailedTest1 extends CompletionProposalsBaseTest{ public class CompletionFailedTest_ScopedReference_NoPrefix_Bug50152 extends CompletionProposalsBaseTest{
private final String fileName = "CompletionFailedTestStart1.cpp"; private final String fileName = "CompletionFailedTestStart1.cpp";
private final String fileFullPath ="resources/contentassist/failedtests/" + fileName; private final String fileFullPath ="resources/contentassist/failedtests/" + fileName;
@ -36,13 +36,13 @@ public class CompletionProposalsFailedTest1 extends CompletionProposalsBaseTest
// shoud be "aNamespaceFunction() void" // shoud be "aNamespaceFunction() void"
}; };
public CompletionProposalsFailedTest1(String name) { public CompletionFailedTest_ScopedReference_NoPrefix_Bug50152(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsFailedTest1.class.getName()); TestSuite suite= new TestSuite(CompletionFailedTest_ScopedReference_NoPrefix_Bug50152.class.getName());
suite.addTest(new CompletionProposalsFailedTest1("testCompletionProposals")); suite.addTest(new CompletionFailedTest_ScopedReference_NoPrefix_Bug50152("testCompletionProposals"));
return suite; return suite;
} }

View file

@ -18,11 +18,11 @@ import org.eclipse.cdt.ui.tests.text.contentassist.CompletionProposalsBaseTest;
/** /**
* @author hamer * @author hamer
* *
* Testing Function/Method scope, Namespace context, with a prefix * Testing Scoped_Reference, with a prefix
* Bug#50152: Wrong context sent after a "::" * Bug#50152: Wrong context sent after a "::"
* *
*/ */
public class CompletionProposalsFailedTest2 extends CompletionProposalsBaseTest{ public class CompletionFailedTest_ScopedReference_Prefix_Bug50152 extends CompletionProposalsBaseTest{
private final String fileName = "CompletionFailedTestStart2.cpp"; private final String fileName = "CompletionFailedTestStart2.cpp";
private final String fileFullPath ="resources/contentassist/failedtests/" + fileName; private final String fileFullPath ="resources/contentassist/failedtests/" + fileName;
@ -36,13 +36,13 @@ public class CompletionProposalsFailedTest2 extends CompletionProposalsBaseTest
// shoud be "aNamespaceFunction() void" // shoud be "aNamespaceFunction() void"
}; };
public CompletionProposalsFailedTest2(String name) { public CompletionFailedTest_ScopedReference_Prefix_Bug50152(String name) {
super(name); super(name);
} }
public static Test suite() { public static Test suite() {
TestSuite suite= new TestSuite(CompletionProposalsFailedTest2.class.getName()); TestSuite suite= new TestSuite(CompletionFailedTest_ScopedReference_Prefix_Bug50152.class.getName());
suite.addTest(new CompletionProposalsFailedTest2("testCompletionProposals")); suite.addTest(new CompletionFailedTest_ScopedReference_Prefix_Bug50152("testCompletionProposals"));
return suite; return suite;
} }