Lines 4719-4725
Link Here
|
4719 |
"interface IDocumentExtension315 {}\n" |
4719 |
"interface IDocumentExtension315 {}\n" |
4720 |
); |
4720 |
); |
4721 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4721 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4722 |
int validatedRule = SearchPattern.validateMatchRule("IDE3", SearchPattern.R_CAMEL_CASE_MATCH); |
4722 |
int validatedRule = SearchPattern.validateMatchRule("IDE3", SearchPattern.R_CAMELCASE_MATCH); |
4723 |
searchAllTypeNames("IDE3", validatedRule, requestor); |
4723 |
searchAllTypeNames("IDE3", validatedRule, requestor); |
4724 |
assertSearchResults( |
4724 |
assertSearchResults( |
4725 |
"IDocumentExtension135\n" + |
4725 |
"IDocumentExtension135\n" + |
Lines 4740-4746
Link Here
|
4740 |
"interface IDocumentProviderExtension54321 {}\n" |
4740 |
"interface IDocumentProviderExtension54321 {}\n" |
4741 |
); |
4741 |
); |
4742 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4742 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4743 |
int validatedRule = SearchPattern.validateMatchRule("IDPE3", SearchPattern.R_CAMEL_CASE_MATCH); |
4743 |
int validatedRule = SearchPattern.validateMatchRule("IDPE3", SearchPattern.R_CAMELCASE_MATCH); |
4744 |
searchAllTypeNames("IDPE3", validatedRule, requestor); |
4744 |
searchAllTypeNames("IDPE3", validatedRule, requestor); |
4745 |
assertSearchResults( |
4745 |
assertSearchResults( |
4746 |
"IDocumentProviderExtension12345\n" + |
4746 |
"IDocumentProviderExtension12345\n" + |
Lines 4757-4763
Link Here
|
4757 |
"interface IPerspectiveListener3 {}\n" |
4757 |
"interface IPerspectiveListener3 {}\n" |
4758 |
); |
4758 |
); |
4759 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4759 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4760 |
int validatedRule = SearchPattern.validateMatchRule("IPL3", SearchPattern.R_CAMEL_CASE_MATCH); |
4760 |
int validatedRule = SearchPattern.validateMatchRule("IPL3", SearchPattern.R_CAMELCASE_MATCH); |
4761 |
searchAllTypeNames("IPL3", validatedRule, requestor); |
4761 |
searchAllTypeNames("IPL3", validatedRule, requestor); |
4762 |
assertSearchResults( |
4762 |
assertSearchResults( |
4763 |
"IPerspectiveListener3", |
4763 |
"IPerspectiveListener3", |
Lines 4771-4777
Link Here
|
4771 |
"interface IPropertySource2 {}\n" |
4771 |
"interface IPropertySource2 {}\n" |
4772 |
); |
4772 |
); |
4773 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4773 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4774 |
int validatedRule = SearchPattern.validateMatchRule("IPS2", SearchPattern.R_CAMEL_CASE_MATCH); |
4774 |
int validatedRule = SearchPattern.validateMatchRule("IPS2", SearchPattern.R_CAMELCASE_MATCH); |
4775 |
searchAllTypeNames("IPS2", validatedRule, requestor); |
4775 |
searchAllTypeNames("IPS2", validatedRule, requestor); |
4776 |
assertSearchResults( |
4776 |
assertSearchResults( |
4777 |
"IPropertySource2", |
4777 |
"IPropertySource2", |
Lines 4788-4794
Link Here
|
4788 |
"interface IWorkbenchWindowPulldownDelegate4 {}\n" |
4788 |
"interface IWorkbenchWindowPulldownDelegate4 {}\n" |
4789 |
); |
4789 |
); |
4790 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4790 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4791 |
int validatedRule = SearchPattern.validateMatchRule("IWWPD2", SearchPattern.R_CAMEL_CASE_MATCH); |
4791 |
int validatedRule = SearchPattern.validateMatchRule("IWWPD2", SearchPattern.R_CAMELCASE_MATCH); |
4792 |
searchAllTypeNames("IWWPD2", validatedRule, requestor); |
4792 |
searchAllTypeNames("IWWPD2", validatedRule, requestor); |
4793 |
assertSearchResults( |
4793 |
assertSearchResults( |
4794 |
"IWorkbenchWindowPulldownDelegate2", |
4794 |
"IWorkbenchWindowPulldownDelegate2", |
Lines 4804-4810
Link Here
|
4804 |
"class UTFDocScannerSupport {}\n" |
4804 |
"class UTFDocScannerSupport {}\n" |
4805 |
); |
4805 |
); |
4806 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4806 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4807 |
int validatedRule = SearchPattern.validateMatchRule("UTF16DSS", SearchPattern.R_CAMEL_CASE_MATCH); |
4807 |
int validatedRule = SearchPattern.validateMatchRule("UTF16DSS", SearchPattern.R_CAMELCASE_MATCH); |
4808 |
searchAllTypeNames("UTF16DSS", validatedRule, requestor); |
4808 |
searchAllTypeNames("UTF16DSS", validatedRule, requestor); |
4809 |
assertSearchResults( |
4809 |
assertSearchResults( |
4810 |
"UTF16DocumentScannerSupport", |
4810 |
"UTF16DocumentScannerSupport", |
Lines 4820-4826
Link Here
|
4820 |
"class UTFDocScannerSupport {}\n" |
4820 |
"class UTFDocScannerSupport {}\n" |
4821 |
); |
4821 |
); |
4822 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4822 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4823 |
int validatedRule = SearchPattern.validateMatchRule("UTF1DSS", SearchPattern.R_CAMEL_CASE_MATCH); |
4823 |
int validatedRule = SearchPattern.validateMatchRule("UTF1DSS", SearchPattern.R_CAMELCASE_MATCH); |
4824 |
searchAllTypeNames("UTF1DSS", validatedRule, requestor); |
4824 |
searchAllTypeNames("UTF1DSS", validatedRule, requestor); |
4825 |
assertSearchResults( |
4825 |
assertSearchResults( |
4826 |
"UTF16DocumentScannerSupport\n" + |
4826 |
"UTF16DocumentScannerSupport\n" + |
Lines 4837-4843
Link Here
|
4837 |
"class UTFDocScannerSupport {}\n" |
4837 |
"class UTFDocScannerSupport {}\n" |
4838 |
); |
4838 |
); |
4839 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4839 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4840 |
int validatedRule = SearchPattern.validateMatchRule("UTF6DSS", SearchPattern.R_CAMEL_CASE_MATCH); |
4840 |
int validatedRule = SearchPattern.validateMatchRule("UTF6DSS", SearchPattern.R_CAMELCASE_MATCH); |
4841 |
searchAllTypeNames("UTF6DSS", validatedRule, requestor); |
4841 |
searchAllTypeNames("UTF6DSS", validatedRule, requestor); |
4842 |
assertSearchResults( |
4842 |
assertSearchResults( |
4843 |
"UTF16DocumentScannerSupport\n" + |
4843 |
"UTF16DocumentScannerSupport\n" + |
Lines 4854-4860
Link Here
|
4854 |
"class UTFDocScannerSupport {}\n" |
4854 |
"class UTFDocScannerSupport {}\n" |
4855 |
); |
4855 |
); |
4856 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4856 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
4857 |
int validatedRule = SearchPattern.validateMatchRule("UTFDSS", SearchPattern.R_CAMEL_CASE_MATCH); |
4857 |
int validatedRule = SearchPattern.validateMatchRule("UTFDSS", SearchPattern.R_CAMELCASE_MATCH); |
4858 |
searchAllTypeNames("UTFDSS", validatedRule, requestor); |
4858 |
searchAllTypeNames("UTFDSS", validatedRule, requestor); |
4859 |
assertSearchResults( |
4859 |
assertSearchResults( |
4860 |
"UTF16DocumentScannerSupport\n" + |
4860 |
"UTF16DocumentScannerSupport\n" + |
Lines 4893-4899
Link Here
|
4893 |
"class AxxAyy {}\n" |
4893 |
"class AxxAyy {}\n" |
4894 |
); |
4894 |
); |
4895 |
} |
4895 |
} |
4896 |
/** @deprecated As using a depreciated constant */ |
|
|
4897 |
public void testBug110060_TypePattern01() throws CoreException { |
4896 |
public void testBug110060_TypePattern01() throws CoreException { |
4898 |
setUpBug110060_TypePattern(); |
4897 |
setUpBug110060_TypePattern(); |
4899 |
search("AA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
4898 |
search("AA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 4906-4914
Link Here
|
4906 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4905 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4907 |
); |
4906 |
); |
4908 |
} |
4907 |
} |
4909 |
public void testBug110060_TypePattern01new() throws CoreException { |
4908 |
public void testBug110060_TypePattern01_SamePartCount() throws CoreException { |
4910 |
setUpBug110060_TypePattern(); |
4909 |
setUpBug110060_TypePattern(); |
4911 |
search("AA", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
4910 |
search("AA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
4912 |
assertSearchResults( |
4911 |
assertSearchResults( |
4913 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
4912 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
4914 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH\n" + |
4913 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH\n" + |
Lines 4916-4922
Link Here
|
4916 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4915 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4917 |
); |
4916 |
); |
4918 |
} |
4917 |
} |
4919 |
/** @deprecated As using a depreciated constant */ |
|
|
4920 |
public void testBug110060_TypePattern02() throws CoreException { |
4918 |
public void testBug110060_TypePattern02() throws CoreException { |
4921 |
setUpBug110060_TypePattern(); |
4919 |
setUpBug110060_TypePattern(); |
4922 |
search("AA", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
4920 |
search("AA", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 4935-4943
Link Here
|
4935 |
"src/b110060/Test.java b110060.AxxAyy [AxxAyy] EXACT_MATCH" |
4933 |
"src/b110060/Test.java b110060.AxxAyy [AxxAyy] EXACT_MATCH" |
4936 |
); |
4934 |
); |
4937 |
} |
4935 |
} |
4938 |
public void testBug110060_TypePattern02new() throws CoreException { |
4936 |
public void testBug110060_TypePattern02_SamePartCount() throws CoreException { |
4939 |
setUpBug110060_TypePattern(); |
4937 |
setUpBug110060_TypePattern(); |
4940 |
search("AA", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
4938 |
search("AA", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
4941 |
assertSearchResults( |
4939 |
assertSearchResults( |
4942 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
4940 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
4943 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH\n" + |
4941 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH\n" + |
Lines 4949-4955
Link Here
|
4949 |
"src/b110060/Test.java b110060.AxxAyy [AxxAyy] EXACT_MATCH" |
4947 |
"src/b110060/Test.java b110060.AxxAyy [AxxAyy] EXACT_MATCH" |
4950 |
); |
4948 |
); |
4951 |
} |
4949 |
} |
4952 |
/** @deprecated As using a depreciated constant */ |
|
|
4953 |
public void testBug110060_TypePattern03() throws CoreException { |
4950 |
public void testBug110060_TypePattern03() throws CoreException { |
4954 |
setUpBug110060_TypePattern(); |
4951 |
setUpBug110060_TypePattern(); |
4955 |
search("AAx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
4952 |
search("AAx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 4957-4970
Link Here
|
4957 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH" |
4954 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH" |
4958 |
); |
4955 |
); |
4959 |
} |
4956 |
} |
4960 |
public void testBug110060_TypePattern03new() throws CoreException { |
4957 |
public void testBug110060_TypePattern03_SamePartCount() throws CoreException { |
4961 |
setUpBug110060_TypePattern(); |
4958 |
setUpBug110060_TypePattern(); |
4962 |
search("AAx", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
4959 |
search("AAx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
4963 |
assertSearchResults( |
4960 |
assertSearchResults( |
4964 |
"" // no result as camel case does not allow prefix match |
4961 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH" |
4965 |
); |
4962 |
); |
4966 |
} |
4963 |
} |
4967 |
/** @deprecated As using a depreciated constant */ |
|
|
4968 |
public void testBug110060_TypePattern04() throws CoreException { |
4964 |
public void testBug110060_TypePattern04() throws CoreException { |
4969 |
setUpBug110060_TypePattern(); |
4965 |
setUpBug110060_TypePattern(); |
4970 |
search("Axx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
4966 |
search("Axx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 4972-4985
Link Here
|
4972 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4968 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4973 |
); |
4969 |
); |
4974 |
} |
4970 |
} |
4975 |
public void testBug110060_TypePattern04new() throws CoreException { |
4971 |
public void testBug110060_TypePattern04_SamePartCount() throws CoreException { |
4976 |
setUpBug110060_TypePattern(); |
4972 |
setUpBug110060_TypePattern(); |
4977 |
search("Axx", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
4973 |
search("Axx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
4978 |
assertSearchResults( |
4974 |
assertSearchResults(""); |
4979 |
"" // no result as camel case does not allow prefix match |
|
|
4980 |
); |
4981 |
} |
4975 |
} |
4982 |
/** @deprecated As using a depreciated constant */ |
|
|
4983 |
public void testBug110060_TypePattern05() throws CoreException { |
4976 |
public void testBug110060_TypePattern05() throws CoreException { |
4984 |
setUpBug110060_TypePattern(); |
4977 |
setUpBug110060_TypePattern(); |
4985 |
search("Ax", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
4978 |
search("Ax", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 4988-5004
Link Here
|
4988 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4981 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4989 |
); |
4982 |
); |
4990 |
} |
4983 |
} |
4991 |
public void testBug110060_TypePattern05new() throws CoreException { |
4984 |
public void testBug110060_TypePattern05_SamePartCount() throws CoreException { |
4992 |
setUpBug110060_TypePattern(); |
4985 |
setUpBug110060_TypePattern(); |
4993 |
search("Ax", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
4986 |
search("Ax", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
4994 |
assertSearchResults( |
4987 |
assertSearchResults(""); |
4995 |
"" // no result as camel case does not allow prefix match |
|
|
4996 |
); |
4997 |
} |
4988 |
} |
4998 |
/** @deprecated As using a depreciated constant */ |
|
|
4999 |
public void testBug110060_TypePattern06() throws CoreException { |
4989 |
public void testBug110060_TypePattern06() throws CoreException { |
5000 |
setUpBug110060_TypePattern(); |
4990 |
setUpBug110060_TypePattern(); |
5001 |
search("A*A*", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
4991 |
search("A*A*", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
|
|
4992 |
// Invalid camel case pattern => replace the camel case flag with pattern match one (case insensitive) |
5002 |
assertSearchResults( |
4993 |
assertSearchResults( |
5003 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
4994 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5004 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
4995 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
Lines 5008-5016
Link Here
|
5008 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
4999 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5009 |
); |
5000 |
); |
5010 |
} |
5001 |
} |
5011 |
public void testBug110060_TypePattern06new() throws CoreException { |
5002 |
public void testBug110060_TypePattern06_SamePartCount() throws CoreException { |
5012 |
setUpBug110060_TypePattern(); |
5003 |
setUpBug110060_TypePattern(); |
5013 |
search("A*A*", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5004 |
search("A*A*", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
|
|
5005 |
// Invalid camel case pattern => replace the camel case flag with pattern match one (case insensitive) |
5014 |
assertSearchResults( |
5006 |
assertSearchResults( |
5015 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5007 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5016 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
5008 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
Lines 5020-5077
Link Here
|
5020 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5012 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5021 |
); |
5013 |
); |
5022 |
} |
5014 |
} |
5023 |
/** @deprecated As using a depreciated constant */ |
|
|
5024 |
public void testBug110060_TypePattern07() throws CoreException { |
5015 |
public void testBug110060_TypePattern07() throws CoreException { |
5025 |
setUpBug110060_TypePattern(); |
5016 |
setUpBug110060_TypePattern(); |
5026 |
search("aa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
5017 |
search("aaa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
|
|
5018 |
// Invalid camel case pattern => replace the camel case flag by prefix match one (case insensitive) |
5027 |
assertSearchResults( |
5019 |
assertSearchResults( |
5028 |
"" // no result because it's an invalid camel case pattern which is replaced with |
5020 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5029 |
// prefix case sensitive match bu SearchPatter.validateMatchRule(...) (old behavior) |
5021 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
|
|
5022 |
"src/b110060/Test.java b110060.Test.a3 [AaAaAa] EXACT_MATCH" |
5030 |
); |
5023 |
); |
5031 |
} |
5024 |
} |
5032 |
public void testBug110060_TypePattern07new() throws CoreException { |
5025 |
public void testBug110060_TypePattern07_SamePartCount() throws CoreException { |
5033 |
setUpBug110060_TypePattern(); |
5026 |
setUpBug110060_TypePattern(); |
5034 |
search("aa", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5027 |
search("aaa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5035 |
// Not a valid camel case pattern => changed to prefix |
5028 |
// Invalid camel case pattern => replace the camel case flag by prefix match one (case insensitive) |
5036 |
assertSearchResults( |
5029 |
assertSearchResults( |
5037 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5030 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5038 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
5031 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
5039 |
"src/b110060/Test.java b110060.Test.a3 [AaAaAa] EXACT_MATCH\n" + |
5032 |
"src/b110060/Test.java b110060.Test.a3 [AaAaAa] EXACT_MATCH" |
5040 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH" |
|
|
5041 |
); |
5033 |
); |
5042 |
} |
5034 |
} |
5043 |
public void testBug110060_TypePattern08() throws CoreException { |
5035 |
public void testBug110060_TypePattern08() throws CoreException { |
5044 |
setUpBug110060_TypePattern(); |
5036 |
setUpBug110060_TypePattern(); |
5045 |
search("aa", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_PREFIX_MATCH); |
5037 |
search("Aaa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
5046 |
assertSearchResults( |
5038 |
assertSearchResults( |
5047 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5039 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH\n" + |
5048 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
5040 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
5049 |
"src/b110060/Test.java b110060.Test.a3 [AaAaAa] EXACT_MATCH\n" + |
5041 |
"src/b110060/Test.java b110060.Test.a3 [AaAaAa] EXACT_MATCH" |
5050 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH" |
5042 |
); |
|
|
5043 |
} |
5044 |
public void testBug110060_TypePattern08_SamePartCount() throws CoreException { |
5045 |
setUpBug110060_TypePattern(); |
5046 |
search("Aaa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5047 |
assertSearchResults( |
5048 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH" |
5051 |
); |
5049 |
); |
5052 |
} |
5050 |
} |
5053 |
public void testBug110060_TypePattern09() throws CoreException { |
5051 |
public void testBug110060_TypePattern09() throws CoreException { |
5054 |
setUpBug110060_TypePattern(); |
5052 |
setUpBug110060_TypePattern(); |
5055 |
search("AA", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
5053 |
search("Aaa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
5056 |
assertSearchResults( |
5054 |
assertSearchResults( |
5057 |
"src/b110060/Test.java b110060.Test.a2 [AAa] EXACT_MATCH\n" + |
5055 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH" |
5058 |
"src/b110060/Test.java b110060.Test.a4 [AAxx] EXACT_MATCH\n" + |
5056 |
); |
5059 |
"src/b110060/Test.java b110060.Test.a5 [AxA] EXACT_MATCH\n" + |
5057 |
} |
5060 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5058 |
public void testBug110060_TypePattern09_SamePartCount() throws CoreException { |
|
|
5059 |
setUpBug110060_TypePattern(); |
5060 |
search("Aaa", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE); |
5061 |
assertSearchResults( |
5062 |
"src/b110060/Test.java b110060.Test.a1 [Aaa] EXACT_MATCH" |
5061 |
); |
5063 |
); |
5062 |
} |
5064 |
} |
5063 |
/** @deprecated As using a depreciated constant */ |
|
|
5064 |
public void testBug110060_TypePattern10() throws CoreException { |
5065 |
public void testBug110060_TypePattern10() throws CoreException { |
5065 |
setUpBug110060_TypePattern(); |
5066 |
setUpBug110060_TypePattern(); |
5066 |
search("AxAx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
5067 |
search("AxAx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
5067 |
assertSearchResults(""); |
5068 |
assertSearchResults(""); |
5068 |
} |
5069 |
} |
5069 |
public void testBug110060_TypePattern10new() throws CoreException { |
5070 |
public void testBug110060_TypePattern10_SamePartCount() throws CoreException { |
5070 |
setUpBug110060_TypePattern(); |
5071 |
setUpBug110060_TypePattern(); |
5071 |
search("AxAx", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5072 |
search("AxAx", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5072 |
assertSearchResults(""); |
5073 |
assertSearchResults(""); |
5073 |
} |
5074 |
} |
5074 |
/** @deprecated As using a depreciated constant */ |
|
|
5075 |
public void testBug110060_TypePattern11() throws CoreException { |
5075 |
public void testBug110060_TypePattern11() throws CoreException { |
5076 |
setUpBug110060_TypePattern(); |
5076 |
setUpBug110060_TypePattern(); |
5077 |
search("AxxA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
5077 |
search("AxxA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5079-5092
Link Here
|
5079 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5079 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5080 |
); |
5080 |
); |
5081 |
} |
5081 |
} |
5082 |
public void testBug110060_TypePattern11new() throws CoreException { |
5082 |
public void testBug110060_TypePattern11_SamePartCount() throws CoreException { |
5083 |
setUpBug110060_TypePattern(); |
5083 |
setUpBug110060_TypePattern(); |
5084 |
search("AxxA", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5084 |
search("AxxA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5085 |
assertSearchResults( |
5085 |
assertSearchResults( |
5086 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5086 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5087 |
); |
5087 |
); |
5088 |
} |
5088 |
} |
5089 |
/** @deprecated As using a depreciated constant */ |
|
|
5090 |
public void testBug110060_TypePattern12() throws CoreException { |
5089 |
public void testBug110060_TypePattern12() throws CoreException { |
5091 |
setUpBug110060_TypePattern(); |
5090 |
setUpBug110060_TypePattern(); |
5092 |
search("AxXA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
5091 |
search("AxXA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5094-5113
Link Here
|
5094 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5093 |
"src/b110060/Test.java b110060.Test.a6 [AxxAyy] EXACT_MATCH" |
5095 |
); |
5094 |
); |
5096 |
} |
5095 |
} |
5097 |
public void testBug110060_TypePattern12new() throws CoreException { |
5096 |
public void testBug110060_TypePattern12_SamePartCount() throws CoreException { |
5098 |
setUpBug110060_TypePattern(); |
5097 |
setUpBug110060_TypePattern(); |
5099 |
search("AxXA", TYPE, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5098 |
search("AxXA", TYPE, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5100 |
assertSearchResults(""); |
5099 |
assertSearchResults(""); |
5101 |
} |
5100 |
} |
5102 |
|
5101 |
|
5103 |
// Search all type names requests |
5102 |
// Search all type names requests |
5104 |
/** @deprecated As using a depreciated constant */ |
|
|
5105 |
public void testBug110060_AllTypeNames01() throws CoreException { |
5103 |
public void testBug110060_AllTypeNames01() throws CoreException { |
5106 |
setUpBug110060_TypePattern(); |
5104 |
setUpBug110060_TypePattern(); |
5107 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5105 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5108 |
searchAllTypeNames("AA", SearchPattern.R_CAMELCASE_MATCH, requestor); |
5106 |
searchAllTypeNames("AA", SearchPattern.R_CAMELCASE_MATCH, requestor); |
5109 |
assertSearchResults( |
5107 |
assertSearchResults("Unexpected all type names", |
5110 |
"Unexpected all type names", |
|
|
5111 |
"b110060.AAa\n" + |
5108 |
"b110060.AAa\n" + |
5112 |
"b110060.AAxx\n" + |
5109 |
"b110060.AAxx\n" + |
5113 |
"b110060.AaAaAa\n" + |
5110 |
"b110060.AaAaAa\n" + |
Lines 5116-5127
Link Here
|
5116 |
"b110060.AxxAyy", |
5113 |
"b110060.AxxAyy", |
5117 |
requestor); |
5114 |
requestor); |
5118 |
} |
5115 |
} |
5119 |
public void testBug110060_AllTypeNames01new() throws CoreException { |
5116 |
public void testBug110060_AllTypeNames01_SamePartCount() throws CoreException { |
5120 |
setUpBug110060_TypePattern(); |
5117 |
setUpBug110060_TypePattern(); |
5121 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5118 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5122 |
searchAllTypeNames("AA", SearchPattern.R_CAMEL_CASE_MATCH, requestor); |
5119 |
searchAllTypeNames("AA", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, requestor); |
5123 |
assertSearchResults( |
5120 |
assertSearchResults("Unexpected all type names", |
5124 |
"Unexpected all type names", |
|
|
5125 |
"b110060.AAa\n" + |
5121 |
"b110060.AAa\n" + |
5126 |
"b110060.AAxx\n" + |
5122 |
"b110060.AAxx\n" + |
5127 |
"b110060.AxA\n" + |
5123 |
"b110060.AxA\n" + |
Lines 5131-5170
Link Here
|
5131 |
public void testBug110060_AllTypeNames02() throws CoreException { |
5127 |
public void testBug110060_AllTypeNames02() throws CoreException { |
5132 |
setUpBug110060_TypePattern(); |
5128 |
setUpBug110060_TypePattern(); |
5133 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5129 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5134 |
searchAllTypeNames("AA", SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_PREFIX_MATCH, requestor); |
5130 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_MATCH, requestor); |
5135 |
assertSearchResults( |
5131 |
// Invalid camel case pattern => replace the camel case flag with prefix match one (case insensitive) |
5136 |
"Unexpected all type names", |
5132 |
assertSearchResults("Unexpected all type names", |
5137 |
"b110060.AAa\n" + |
5133 |
"b110060.AAa\n" + |
5138 |
"b110060.AAxx\n" + |
|
|
5139 |
"b110060.AaAaAa\n" + |
5134 |
"b110060.AaAaAa\n" + |
5140 |
"b110060.Aaa\n" + |
5135 |
"b110060.Aaa", |
5141 |
"b110060.AxA\n" + |
5136 |
requestor); |
5142 |
"b110060.AxxAyy", |
5137 |
} |
|
|
5138 |
public void testBug110060_AllTypeNames02_SamePartCount() throws CoreException { |
5139 |
setUpBug110060_TypePattern(); |
5140 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5141 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, requestor); |
5142 |
// Invalid camel case pattern => replace the camel case flag with prefix match one (case insensitive) |
5143 |
assertSearchResults("Unexpected all type names", |
5144 |
"b110060.AAa\n" + |
5145 |
"b110060.AaAaAa\n" + |
5146 |
"b110060.Aaa", |
5143 |
requestor); |
5147 |
requestor); |
5144 |
} |
5148 |
} |
5145 |
public void testBug110060_AllTypeNames03() throws CoreException { |
5149 |
public void testBug110060_AllTypeNames03() throws CoreException { |
5146 |
setUpBug110060_TypePattern(); |
5150 |
setUpBug110060_TypePattern(); |
5147 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5151 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5148 |
searchAllTypeNames("AAA", SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5152 |
searchAllTypeNames("AAa", SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5149 |
assertSearchResults( |
5153 |
assertSearchResults("Unexpected all type names", |
5150 |
"Unexpected all type names", |
5154 |
"b110060.AAa\n" + |
5151 |
"b110060.AaAaAa", |
5155 |
"b110060.AaAaAa", |
5152 |
requestor); |
5156 |
requestor); |
5153 |
} |
5157 |
} |
5154 |
public void testBug110060_AllTypeNames04() throws CoreException { |
5158 |
public void testBug110060_AllTypeNames03_SamePartCount() throws CoreException { |
5155 |
setUpBug110060_TypePattern(); |
5159 |
setUpBug110060_TypePattern(); |
5156 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5160 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5157 |
searchAllTypeNames("AA", SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5161 |
searchAllTypeNames("AAa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5158 |
assertSearchResults( |
5162 |
assertSearchResults("Unexpected all type names", |
5159 |
"Unexpected all type names", |
5163 |
"b110060.AAa", |
5160 |
"b110060.AAa\n" + |
|
|
5161 |
"b110060.AAxx\n" + |
5162 |
"b110060.AaAaAa\n" + |
5163 |
"b110060.AxA\n" + |
5164 |
"b110060.AxxAyy", |
5165 |
requestor); |
5164 |
requestor); |
5166 |
} |
5165 |
} |
5167 |
public void testBug110060_AllTypeNames05() throws CoreException { |
5166 |
public void testBug110060_AllTypeNames04() throws CoreException { |
5168 |
setUpBug110060_TypePattern(); |
5167 |
setUpBug110060_TypePattern(); |
5169 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5168 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5170 |
searchAllTypeNames("AA", SearchPattern.R_PREFIX_MATCH, requestor); |
5169 |
searchAllTypeNames("AA", SearchPattern.R_PREFIX_MATCH, requestor); |
Lines 5176-5182
Link Here
|
5176 |
"b110060.Aaa", |
5175 |
"b110060.Aaa", |
5177 |
requestor); |
5176 |
requestor); |
5178 |
} |
5177 |
} |
5179 |
public void testBug110060_AllTypeNames06() throws CoreException { |
5178 |
public void testBug110060_AllTypeNames05() throws CoreException { |
5180 |
setUpBug110060_TypePattern(); |
5179 |
setUpBug110060_TypePattern(); |
5181 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5180 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5182 |
searchAllTypeNames("AAA", SearchPattern.R_CASE_SENSITIVE, requestor); |
5181 |
searchAllTypeNames("AAA", SearchPattern.R_CASE_SENSITIVE, requestor); |
Lines 5185-5191
Link Here
|
5185 |
"", |
5184 |
"", |
5186 |
requestor); |
5185 |
requestor); |
5187 |
} |
5186 |
} |
5188 |
public void testBug110060_AllTypeNames07() throws CoreException { |
5187 |
public void testBug110060_AllTypeNames06() throws CoreException { |
5189 |
setUpBug110060_TypePattern(); |
5188 |
setUpBug110060_TypePattern(); |
5190 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5189 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5191 |
searchAllTypeNames("AA", SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5190 |
searchAllTypeNames("AA", SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
Lines 5195-5247
Link Here
|
5195 |
"b110060.AAxx", |
5194 |
"b110060.AAxx", |
5196 |
requestor); |
5195 |
requestor); |
5197 |
} |
5196 |
} |
5198 |
/** @deprecated As using a depreciated constant */ |
5197 |
public void testBug110060_AllTypeNames07() throws CoreException { |
5199 |
public void testBug110060_AllTypeNames08() throws CoreException { |
|
|
5200 |
setUpBug110060_TypePattern(); |
5198 |
setUpBug110060_TypePattern(); |
5201 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5199 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5202 |
searchAllTypeNames("aa", SearchPattern.R_CAMELCASE_MATCH, requestor); |
5200 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_PREFIX_MATCH, requestor); |
|
|
5201 |
// Invalid camel case pattern => replace the camel case flag with prefix match one (case insensitive) |
5203 |
assertSearchResults( |
5202 |
assertSearchResults( |
5204 |
"Unexpected all type names", |
5203 |
"Unexpected all type names", |
5205 |
"b110060.AAa\n" + |
5204 |
"b110060.AAa\n" + |
5206 |
"b110060.AAxx\n" + |
|
|
5207 |
"b110060.AaAaAa\n" + |
5205 |
"b110060.AaAaAa\n" + |
5208 |
"b110060.Aaa", |
5206 |
"b110060.Aaa", |
5209 |
requestor); |
5207 |
requestor); |
5210 |
} |
5208 |
} |
5211 |
public void testBug110060_AllTypeNames08new() throws CoreException { |
5209 |
public void testBug110060_AllTypeNames07_SamePartCount() throws CoreException { |
5212 |
setUpBug110060_TypePattern(); |
5210 |
setUpBug110060_TypePattern(); |
5213 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5211 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5214 |
searchAllTypeNames("aa", SearchPattern.R_CAMEL_CASE_MATCH, requestor); |
5212 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_PREFIX_MATCH, requestor); |
|
|
5213 |
// Invalid camel case pattern => replace the camel case flag with prefix match one (case insensitive) |
5215 |
assertSearchResults( |
5214 |
assertSearchResults( |
5216 |
"Unexpected all type names", |
5215 |
"Unexpected all type names", |
5217 |
"", // no match as pattern is not a valid camel case |
5216 |
"b110060.AAa\n" + |
|
|
5217 |
"b110060.AaAaAa\n" + |
5218 |
"b110060.Aaa", |
5218 |
requestor); |
5219 |
requestor); |
5219 |
} |
5220 |
} |
5220 |
public void testBug110060_AllTypeNames09() throws CoreException { |
5221 |
public void testBug110060_AllTypeNames08() throws CoreException { |
5221 |
setUpBug110060_TypePattern(); |
5222 |
setUpBug110060_TypePattern(); |
5222 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5223 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5223 |
searchAllTypeNames("aa", SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_PREFIX_MATCH, requestor); |
5224 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
|
|
5225 |
// Invalid camel case pattern => replace the camel case flag with prefix match one keeping case sensitive |
5224 |
assertSearchResults( |
5226 |
assertSearchResults( |
5225 |
"Unexpected all type names", |
5227 |
"Unexpected all type names", |
5226 |
"b110060.AAa\n" + |
5228 |
"", |
5227 |
"b110060.AAxx\n" + |
5229 |
requestor); |
5228 |
"b110060.AaAaAa\n" + |
5230 |
} |
5229 |
"b110060.Aaa", |
5231 |
public void testBug110060_AllTypeNames08_SamePartCount() throws CoreException { |
|
|
5232 |
setUpBug110060_TypePattern(); |
5233 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5234 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5235 |
// Invalid camel case pattern => replace the camel case flag with prefix match one keeping case sensitive |
5236 |
assertSearchResults( |
5237 |
"Unexpected all type names", |
5238 |
"", |
5230 |
requestor); |
5239 |
requestor); |
5231 |
} |
5240 |
} |
5232 |
public void testBug110060_AllTypeNames10() throws CoreException { |
5241 |
public void testBug110060_AllTypeNames09() throws CoreException { |
5233 |
setUpBug110060_TypePattern(); |
5242 |
setUpBug110060_TypePattern(); |
5234 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5243 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5235 |
searchAllTypeNames("aa", SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5244 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
|
|
5245 |
// Invalid camel case pattern => reset the camel case flag keeping prefix match and case sensitive ones |
5236 |
assertSearchResults( |
5246 |
assertSearchResults( |
5237 |
"Unexpected all type names", |
5247 |
"Unexpected all type names", |
5238 |
"", // no match as pattern is not a valid camel case |
5248 |
"", |
5239 |
requestor); |
5249 |
requestor); |
5240 |
} |
5250 |
} |
5241 |
public void testBug110060_AllTypeNames11() throws CoreException { |
5251 |
public void testBug110060_AllTypeNames09_SamePartCount() throws CoreException { |
5242 |
setUpBug110060_TypePattern(); |
5252 |
setUpBug110060_TypePattern(); |
5243 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5253 |
TypeNameRequestor requestor = new SearchTests.SearchTypeNameRequestor(); |
5244 |
searchAllTypeNames("aa", SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
5254 |
searchAllTypeNames("aaa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CASE_SENSITIVE, requestor); |
|
|
5255 |
// Invalid camel case pattern => reset the camel case flag keeping prefix match and case sensitive ones |
5245 |
assertSearchResults( |
5256 |
assertSearchResults( |
5246 |
"Unexpected all type names", |
5257 |
"Unexpected all type names", |
5247 |
"", |
5258 |
"", |
Lines 5281-5290
Link Here
|
5281 |
// Constructor search |
5292 |
// Constructor search |
5282 |
private void setUpBug110060_ConstructorPattern() throws CoreException { |
5293 |
private void setUpBug110060_ConstructorPattern() throws CoreException { |
5283 |
workingCopies = new ICompilationUnit[5]; |
5294 |
workingCopies = new ICompilationUnit[5]; |
5284 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/b110060/AA.java", |
5295 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/b110060/AAAA.java", |
5285 |
"package b110060;\n" + |
5296 |
"package b110060;\n" + |
5286 |
"public class AA {\n" + |
5297 |
"public class AAAA {\n" + |
5287 |
" AA() {}\n" + |
5298 |
" AAAA() {}\n" + |
5288 |
"}\n" |
5299 |
"}\n" |
5289 |
); |
5300 |
); |
5290 |
workingCopies[1] = getWorkingCopy("/JavaSearchBugs/src/b110060/AAxx.java", |
5301 |
workingCopies[1] = getWorkingCopy("/JavaSearchBugs/src/b110060/AAxx.java", |
Lines 5299-5376
Link Here
|
5299 |
" AxxAyy() {}\n" + |
5310 |
" AxxAyy() {}\n" + |
5300 |
"}\n" |
5311 |
"}\n" |
5301 |
); |
5312 |
); |
5302 |
workingCopies[3] = getWorkingCopy("/JavaSearchBugs/src/b110060/AxA.java", |
5313 |
workingCopies[3] = getWorkingCopy("/JavaSearchBugs/src/b110060/AxAyAz.java", |
5303 |
"package b110060;\n" + |
5314 |
"package b110060;\n" + |
5304 |
"public class AxA {\n" + |
5315 |
"public class AxAyAz {\n" + |
5305 |
" AxA() {}\n" + |
5316 |
" AxAyAz() {}\n" + |
5306 |
"}\n" |
5317 |
"}\n" |
5307 |
); |
5318 |
); |
5308 |
workingCopies[4] = getWorkingCopy("/JavaSearchBugs/src/b110060/Test.java", |
5319 |
workingCopies[4] = getWorkingCopy("/JavaSearchBugs/src/b110060/Test.java", |
5309 |
"package b110060;\n" + |
5320 |
"package b110060;\n" + |
5310 |
"public class Test {\n" + |
5321 |
"public class Test {\n" + |
5311 |
" AA aa = new AA();\n" + |
5322 |
" AAAA aaaa = new AAAA();\n" + |
5312 |
" AAxx aaxx = new AAxx();\n" + |
5323 |
" AAxx aaxx = new AAxx();\n" + |
5313 |
" AxA axa = new AxA();\n" + |
5324 |
" AxAyAz axayaz = new AxAyAz();\n" + |
5314 |
" AxxAyy axxayy = new AxxAyy();\n" + |
5325 |
" AxxAyy axxayy = new AxxAyy();\n" + |
5315 |
"}\n" |
5326 |
"}\n" |
5316 |
); |
5327 |
); |
5317 |
} |
5328 |
} |
5318 |
public void testBug110060_ConstructorPattern01() throws CoreException { |
5329 |
public void testBug110060_ConstructorPattern01() throws CoreException { |
5319 |
setUpBug110060_ConstructorPattern(); |
5330 |
setUpBug110060_ConstructorPattern(); |
5320 |
search("AA", CONSTRUCTOR, REFERENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5331 |
search("AA", CONSTRUCTOR, REFERENCES, SearchPattern.R_CAMELCASE_MATCH); |
|
|
5332 |
assertSearchResults( |
5333 |
"src/b110060/Test.java b110060.Test.aaaa [new AAAA()] EXACT_MATCH\n" + |
5334 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5335 |
"src/b110060/Test.java b110060.Test.axayaz [new AxAyAz()] EXACT_MATCH\n" + |
5336 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5337 |
); |
5338 |
} |
5339 |
public void testBug110060_ConstructorPattern01_SamePartCount() throws CoreException { |
5340 |
setUpBug110060_ConstructorPattern(); |
5341 |
search("AA", CONSTRUCTOR, REFERENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5321 |
assertSearchResults( |
5342 |
assertSearchResults( |
5322 |
"src/b110060/Test.java b110060.Test.aa [new AA()] EXACT_MATCH\n" + |
|
|
5323 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5343 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5324 |
"src/b110060/Test.java b110060.Test.axa [new AxA()] EXACT_MATCH\n" + |
|
|
5325 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5344 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5326 |
); |
5345 |
); |
5327 |
} |
5346 |
} |
5328 |
public void testBug110060_ConstructorPattern02() throws CoreException { |
5347 |
public void testBug110060_ConstructorPattern02() throws CoreException { |
5329 |
setUpBug110060_ConstructorPattern(); |
5348 |
setUpBug110060_ConstructorPattern(); |
5330 |
search("AA", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5349 |
search("AA", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5331 |
assertSearchResults( |
5350 |
assertSearchResults( |
5332 |
"src/b110060/AA.java b110060.AA() [AA] EXACT_MATCH\n" + |
5351 |
"src/b110060/AAAA.java b110060.AAAA() [AAAA] EXACT_MATCH\n" + |
5333 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5352 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5334 |
"src/b110060/AxA.java b110060.AxA() [AxA] EXACT_MATCH\n" + |
5353 |
"src/b110060/AxAyAz.java b110060.AxAyAz() [AxAyAz] EXACT_MATCH\n" + |
5335 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5354 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5336 |
"src/b110060/Test.java b110060.Test.aa [new AA()] EXACT_MATCH\n" + |
5355 |
"src/b110060/Test.java b110060.Test.aaaa [new AAAA()] EXACT_MATCH\n" + |
5337 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5356 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5338 |
"src/b110060/Test.java b110060.Test.axa [new AxA()] EXACT_MATCH\n" + |
5357 |
"src/b110060/Test.java b110060.Test.axayaz [new AxAyAz()] EXACT_MATCH\n" + |
|
|
5358 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5359 |
); |
5360 |
} |
5361 |
public void testBug110060_ConstructorPattern02_SamePartCount() throws CoreException { |
5362 |
setUpBug110060_ConstructorPattern(); |
5363 |
search("AA", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5364 |
assertSearchResults( |
5365 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5366 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5367 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5339 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5368 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5340 |
); |
5369 |
); |
5341 |
} |
5370 |
} |
5342 |
public void testBug110060_ConstructorPattern03() throws CoreException { |
5371 |
public void testBug110060_ConstructorPattern03() throws CoreException { |
5343 |
setUpBug110060_ConstructorPattern(); |
5372 |
setUpBug110060_ConstructorPattern(); |
5344 |
search("AAx", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5373 |
search("AAx", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5345 |
assertSearchResults( |
5374 |
assertSearchResults( |
5346 |
"" // no match as prefix is not set |
5375 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
|
|
5376 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH" |
5377 |
); |
5378 |
} |
5379 |
public void testBug110060_ConstructorPattern03_SamePartCount() throws CoreException { |
5380 |
setUpBug110060_ConstructorPattern(); |
5381 |
search("AAx", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5382 |
assertSearchResults( |
5383 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5384 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH" |
5347 |
); |
5385 |
); |
5348 |
} |
5386 |
} |
5349 |
public void testBug110060_ConstructorPattern04() throws CoreException { |
5387 |
public void testBug110060_ConstructorPattern04() throws CoreException { |
5350 |
setUpBug110060_ConstructorPattern(); |
5388 |
setUpBug110060_ConstructorPattern(); |
5351 |
search("Axx", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5389 |
search("AxA", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
|
|
5390 |
assertSearchResults( |
5391 |
"src/b110060/AxAyAz.java b110060.AxAyAz() [AxAyAz] EXACT_MATCH\n" + |
5392 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5393 |
"src/b110060/Test.java b110060.Test.axayaz [new AxAyAz()] EXACT_MATCH\n" + |
5394 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5395 |
); |
5396 |
} |
5397 |
public void testBug110060_ConstructorPattern04_SamePartCount() throws CoreException { |
5398 |
setUpBug110060_ConstructorPattern(); |
5399 |
search("AxA", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5352 |
assertSearchResults( |
5400 |
assertSearchResults( |
5353 |
"" // no match as prefix is not set |
5401 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
|
|
5402 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5354 |
); |
5403 |
); |
5355 |
} |
5404 |
} |
5356 |
public void testBug110060_ConstructorPattern05() throws CoreException { |
5405 |
public void testBug110060_ConstructorPattern05() throws CoreException { |
5357 |
setUpBug110060_ConstructorPattern(); |
5406 |
setUpBug110060_ConstructorPattern(); |
5358 |
search("Ax", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5407 |
search("A*A*", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
|
|
5408 |
// Invalid camel case pattern => replace the camel case flag with pattern match one (case insensitive) |
5359 |
assertSearchResults( |
5409 |
assertSearchResults( |
5360 |
"" // no match as prefix is not set |
5410 |
"src/b110060/AAAA.java b110060.AAAA() [AAAA] EXACT_MATCH\n" + |
|
|
5411 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5412 |
"src/b110060/AxAyAz.java b110060.AxAyAz() [AxAyAz] EXACT_MATCH\n" + |
5413 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5414 |
"src/b110060/Test.java b110060.Test.aaaa [new AAAA()] EXACT_MATCH\n" + |
5415 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5416 |
"src/b110060/Test.java b110060.Test.axayaz [new AxAyAz()] EXACT_MATCH\n" + |
5417 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5361 |
); |
5418 |
); |
5362 |
} |
5419 |
} |
5363 |
public void testBug110060_ConstructorPattern06() throws CoreException { |
5420 |
public void testBug110060_ConstructorPattern05_SamePartCount() throws CoreException { |
5364 |
setUpBug110060_ConstructorPattern(); |
5421 |
setUpBug110060_ConstructorPattern(); |
5365 |
search("A*A*", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5422 |
search("A*A*", CONSTRUCTOR, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
|
|
5423 |
// Invalid camel case pattern => replace the camel case flag with pattern match one (case insensitive) |
5366 |
assertSearchResults( |
5424 |
assertSearchResults( |
5367 |
"src/b110060/AA.java b110060.AA() [AA] EXACT_MATCH\n" + |
5425 |
"src/b110060/AAAA.java b110060.AAAA() [AAAA] EXACT_MATCH\n" + |
5368 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5426 |
"src/b110060/AAxx.java b110060.AAxx() [AAxx] EXACT_MATCH\n" + |
5369 |
"src/b110060/AxA.java b110060.AxA() [AxA] EXACT_MATCH\n" + |
5427 |
"src/b110060/AxAyAz.java b110060.AxAyAz() [AxAyAz] EXACT_MATCH\n" + |
5370 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5428 |
"src/b110060/AxxAyy.java b110060.AxxAyy() [AxxAyy] EXACT_MATCH\n" + |
5371 |
"src/b110060/Test.java b110060.Test.aa [new AA()] EXACT_MATCH\n" + |
5429 |
"src/b110060/Test.java b110060.Test.aaaa [new AAAA()] EXACT_MATCH\n" + |
5372 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5430 |
"src/b110060/Test.java b110060.Test.aaxx [new AAxx()] EXACT_MATCH\n" + |
5373 |
"src/b110060/Test.java b110060.Test.axa [new AxA()] EXACT_MATCH\n" + |
5431 |
"src/b110060/Test.java b110060.Test.axayaz [new AxAyAz()] EXACT_MATCH\n" + |
5374 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5432 |
"src/b110060/Test.java b110060.Test.axxayy [new AxxAyy()] EXACT_MATCH" |
5375 |
); |
5433 |
); |
5376 |
} |
5434 |
} |
Lines 5396-5424
Link Here
|
5396 |
"}\n" |
5454 |
"}\n" |
5397 |
); |
5455 |
); |
5398 |
} |
5456 |
} |
5399 |
/** @deprecated As using a depreciated constant */ |
|
|
5400 |
public void testBug110060_MethodPattern01() throws CoreException { |
5457 |
public void testBug110060_MethodPattern01() throws CoreException { |
5401 |
setUpBug110060_MethodPattern(); |
5458 |
setUpBug110060_MethodPattern(); |
5402 |
search("MWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5459 |
search("MWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5403 |
assertSearchResults(""); |
5460 |
assertSearchResults(""); |
5404 |
} |
5461 |
} |
5405 |
public void testBug110060_MethodPattern01new() throws CoreException { |
5462 |
public void testBug110060_MethodPattern01_SamePartCount() throws CoreException { |
5406 |
setUpBug110060_MethodPattern(); |
5463 |
setUpBug110060_MethodPattern(); |
5407 |
search("MWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5464 |
search("MWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5408 |
assertSearchResults(""); |
5465 |
assertSearchResults(""); |
5409 |
} |
5466 |
} |
5410 |
/** @deprecated As using a depreciated constant */ |
|
|
5411 |
public void testBug110060_MethodPattern02() throws CoreException { |
5467 |
public void testBug110060_MethodPattern02() throws CoreException { |
5412 |
setUpBug110060_MethodPattern(); |
5468 |
setUpBug110060_MethodPattern(); |
5413 |
search("AMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5469 |
search("AMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5414 |
assertSearchResults(""); |
5470 |
assertSearchResults(""); |
5415 |
} |
5471 |
} |
5416 |
public void testBug110060_MethodPattern02new() throws CoreException { |
5472 |
public void testBug110060_MethodPattern02_SamePartCount() throws CoreException { |
5417 |
setUpBug110060_MethodPattern(); |
5473 |
setUpBug110060_MethodPattern(); |
5418 |
search("AMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5474 |
search("AMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5419 |
assertSearchResults(""); |
5475 |
assertSearchResults(""); |
5420 |
} |
5476 |
} |
5421 |
/** @deprecated As using a depreciated constant */ |
|
|
5422 |
public void testBug110060_MethodPattern03() throws CoreException { |
5477 |
public void testBug110060_MethodPattern03() throws CoreException { |
5423 |
setUpBug110060_MethodPattern(); |
5478 |
setUpBug110060_MethodPattern(); |
5424 |
search("aMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5479 |
search("aMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5429-5443
Link Here
|
5429 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1DigitAnd_AnUnderscore()] EXACT_MATCH" |
5484 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1DigitAnd_AnUnderscore()] EXACT_MATCH" |
5430 |
); |
5485 |
); |
5431 |
} |
5486 |
} |
5432 |
public void testBug110060_MethodPattern03new() throws CoreException { |
5487 |
public void testBug110060_MethodPattern03_SamePartCount() throws CoreException { |
5433 |
setUpBug110060_MethodPattern(); |
5488 |
setUpBug110060_MethodPattern(); |
5434 |
search("aMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5489 |
search("aMWD", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5435 |
assertSearchResults( |
5490 |
assertSearchResults( |
5436 |
"src/b110060/Test.java void b110060.Test.aMethodWith1Digit() [aMethodWith1Digit] EXACT_MATCH\n" + |
5491 |
"src/b110060/Test.java void b110060.Test.aMethodWith1Digit() [aMethodWith1Digit] EXACT_MATCH\n" + |
5437 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Digit()] EXACT_MATCH" |
5492 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Digit()] EXACT_MATCH" |
5438 |
); |
5493 |
); |
5439 |
} |
5494 |
} |
5440 |
/** @deprecated As using a depreciated constant */ |
|
|
5441 |
public void testBug110060_MethodPattern04() throws CoreException { |
5495 |
public void testBug110060_MethodPattern04() throws CoreException { |
5442 |
setUpBug110060_MethodPattern(); |
5496 |
setUpBug110060_MethodPattern(); |
5443 |
search("aMW", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5497 |
search("aMW", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5452-5465
Link Here
|
5452 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWithNothingSpecial()] EXACT_MATCH" |
5506 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWithNothingSpecial()] EXACT_MATCH" |
5453 |
); |
5507 |
); |
5454 |
} |
5508 |
} |
5455 |
public void testBug110060_MethodPattern04new() throws CoreException { |
5509 |
public void testBug110060_MethodPattern04_SamePartCount() throws CoreException { |
5456 |
setUpBug110060_MethodPattern(); |
5510 |
setUpBug110060_MethodPattern(); |
5457 |
search("aMW", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5511 |
search("aMW", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5458 |
assertSearchResults( |
5512 |
assertSearchResults( |
5459 |
"" // no result as prefix match is not set |
5513 |
"" |
5460 |
); |
5514 |
); |
5461 |
} |
5515 |
} |
5462 |
/** @deprecated As using a depreciated constant */ |
|
|
5463 |
public void testBug110060_MethodPattern05() throws CoreException { |
5516 |
public void testBug110060_MethodPattern05() throws CoreException { |
5464 |
setUpBug110060_MethodPattern(); |
5517 |
setUpBug110060_MethodPattern(); |
5465 |
search("aMethod", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5518 |
search("aMethod", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5474-5487
Link Here
|
5474 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWithNothingSpecial()] EXACT_MATCH" |
5527 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWithNothingSpecial()] EXACT_MATCH" |
5475 |
); |
5528 |
); |
5476 |
} |
5529 |
} |
5477 |
public void testBug110060_MethodPattern05new() throws CoreException { |
5530 |
public void testBug110060_MethodPattern05_SamePartCount() throws CoreException { |
5478 |
setUpBug110060_MethodPattern(); |
5531 |
setUpBug110060_MethodPattern(); |
5479 |
search("aMethod", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5532 |
search("aMethod", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5480 |
assertSearchResults( |
5533 |
assertSearchResults(""); |
5481 |
"" // no result as prefix match is not set |
|
|
5482 |
); |
5483 |
} |
5534 |
} |
5484 |
/** @deprecated As using a depreciated constant */ |
|
|
5485 |
public void testBug110060_MethodPattern06() throws CoreException { |
5535 |
public void testBug110060_MethodPattern06() throws CoreException { |
5486 |
setUpBug110060_MethodPattern(); |
5536 |
setUpBug110060_MethodPattern(); |
5487 |
search("aMethodWith1", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5537 |
search("aMethodWith1", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5494-5510
Link Here
|
5494 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores()] EXACT_MATCH" |
5544 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores()] EXACT_MATCH" |
5495 |
); |
5545 |
); |
5496 |
} |
5546 |
} |
5497 |
public void testBug110060_MethodPattern06new() throws CoreException { |
5547 |
public void testBug110060_MethodPattern06_SamePartCount() throws CoreException { |
5498 |
setUpBug110060_MethodPattern(); |
5548 |
setUpBug110060_MethodPattern(); |
5499 |
search("aMethodWith1", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5549 |
search("aMethodWith1", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5500 |
assertSearchResults( |
5550 |
assertSearchResults(""); |
5501 |
"" // no result as prefix match is not set |
|
|
5502 |
); |
5503 |
} |
5551 |
} |
5504 |
/** @deprecated As using a depreciated constant */ |
|
|
5505 |
public void testBug110060_MethodPattern07() throws CoreException { |
5552 |
public void testBug110060_MethodPattern07() throws CoreException { |
5506 |
setUpBug110060_MethodPattern(); |
5553 |
setUpBug110060_MethodPattern(); |
5507 |
search("*Method*With*A*", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5554 |
search("*Method*With*A*", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
|
|
5555 |
// Invalid camel case pattern => replace the camel case flag with pattern match one (case insensitive) |
5508 |
assertSearchResults( |
5556 |
assertSearchResults( |
5509 |
"src/b110060/Test.java void b110060.Test.aMethodWithNothingSpecial() [aMethodWithNothingSpecial] EXACT_MATCH\n" + |
5557 |
"src/b110060/Test.java void b110060.Test.aMethodWithNothingSpecial() [aMethodWithNothingSpecial] EXACT_MATCH\n" + |
5510 |
"src/b110060/Test.java void b110060.Test.aMethodWith1DigitAnd_AnUnderscore() [aMethodWith1DigitAnd_AnUnderscore] EXACT_MATCH\n" + |
5558 |
"src/b110060/Test.java void b110060.Test.aMethodWith1DigitAnd_AnUnderscore() [aMethodWith1DigitAnd_AnUnderscore] EXACT_MATCH\n" + |
Lines 5516-5524
Link Here
|
5516 |
"src/b110060/Test.java void b110060.Test.testReferences() [otherMethodWhichStartsWithAnotherLetter()] EXACT_MATCH" |
5564 |
"src/b110060/Test.java void b110060.Test.testReferences() [otherMethodWhichStartsWithAnotherLetter()] EXACT_MATCH" |
5517 |
); |
5565 |
); |
5518 |
} |
5566 |
} |
5519 |
public void testBug110060_MethodPattern07new() throws CoreException { |
5567 |
public void testBug110060_MethodPattern07_SamePartCount() throws CoreException { |
5520 |
setUpBug110060_MethodPattern(); |
5568 |
setUpBug110060_MethodPattern(); |
5521 |
search("*Method*With*A*", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5569 |
search("*Method*With*A*", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
|
|
5570 |
// Invalid camel case pattern => replace the camel case flag with pattern match one (case insensitive) |
5522 |
assertSearchResults( |
5571 |
assertSearchResults( |
5523 |
"src/b110060/Test.java void b110060.Test.aMethodWithNothingSpecial() [aMethodWithNothingSpecial] EXACT_MATCH\n" + |
5572 |
"src/b110060/Test.java void b110060.Test.aMethodWithNothingSpecial() [aMethodWithNothingSpecial] EXACT_MATCH\n" + |
5524 |
"src/b110060/Test.java void b110060.Test.aMethodWith1DigitAnd_AnUnderscore() [aMethodWith1DigitAnd_AnUnderscore] EXACT_MATCH\n" + |
5573 |
"src/b110060/Test.java void b110060.Test.aMethodWith1DigitAnd_AnUnderscore() [aMethodWith1DigitAnd_AnUnderscore] EXACT_MATCH\n" + |
Lines 5530-5536
Link Here
|
5530 |
"src/b110060/Test.java void b110060.Test.testReferences() [otherMethodWhichStartsWithAnotherLetter()] EXACT_MATCH" |
5579 |
"src/b110060/Test.java void b110060.Test.testReferences() [otherMethodWhichStartsWithAnotherLetter()] EXACT_MATCH" |
5531 |
); |
5580 |
); |
5532 |
} |
5581 |
} |
5533 |
/** @deprecated As using a depreciated constant */ |
|
|
5534 |
public void testBug110060_MethodPattern08() throws CoreException { |
5582 |
public void testBug110060_MethodPattern08() throws CoreException { |
5535 |
setUpBug110060_MethodPattern(); |
5583 |
setUpBug110060_MethodPattern(); |
5536 |
search("aMW1D", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5584 |
search("aMW1D", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5541-5555
Link Here
|
5541 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1DigitAnd_AnUnderscore()] EXACT_MATCH" |
5589 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1DigitAnd_AnUnderscore()] EXACT_MATCH" |
5542 |
); |
5590 |
); |
5543 |
} |
5591 |
} |
5544 |
public void testBug110060_MethodPattern08new() throws CoreException { |
5592 |
public void testBug110060_MethodPattern08_SamePartCount() throws CoreException { |
5545 |
setUpBug110060_MethodPattern(); |
5593 |
setUpBug110060_MethodPattern(); |
5546 |
search("aMW1D", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5594 |
search("aMW1D", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5547 |
assertSearchResults( |
5595 |
assertSearchResults( |
5548 |
"src/b110060/Test.java void b110060.Test.aMethodWith1Digit() [aMethodWith1Digit] EXACT_MATCH\n" + |
5596 |
"src/b110060/Test.java void b110060.Test.aMethodWith1Digit() [aMethodWith1Digit] EXACT_MATCH\n" + |
5549 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Digit()] EXACT_MATCH" |
5597 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Digit()] EXACT_MATCH" |
5550 |
); |
5598 |
); |
5551 |
} |
5599 |
} |
5552 |
/** @deprecated As using a depreciated constant */ |
|
|
5553 |
public void testBug110060_MethodPattern09() throws CoreException { |
5600 |
public void testBug110060_MethodPattern09() throws CoreException { |
5554 |
setUpBug110060_MethodPattern(); |
5601 |
setUpBug110060_MethodPattern(); |
5555 |
search("aMWOOODASU", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5602 |
search("aMWOOODASU", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5558-5566
Link Here
|
5558 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores()] EXACT_MATCH" |
5605 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores()] EXACT_MATCH" |
5559 |
); |
5606 |
); |
5560 |
} |
5607 |
} |
5561 |
public void testBug110060_MethodPattern09new() throws CoreException { |
5608 |
public void testBug110060_MethodPattern09_SamePartCount() throws CoreException { |
5562 |
setUpBug110060_MethodPattern(); |
5609 |
setUpBug110060_MethodPattern(); |
5563 |
search("aMWOOODASU", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5610 |
search("aMWOOODASU", METHOD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5564 |
assertSearchResults( |
5611 |
assertSearchResults( |
5565 |
"src/b110060/Test.java void b110060.Test.aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores] EXACT_MATCH\n" + |
5612 |
"src/b110060/Test.java void b110060.Test.aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores] EXACT_MATCH\n" + |
5566 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores()] EXACT_MATCH" |
5613 |
"src/b110060/Test.java void b110060.Test.testReferences() [aMethodWith1Or2_Or_3_Or__4__DigitsAnd_Several_Underscores()] EXACT_MATCH" |
Lines 5588-5594
Link Here
|
5588 |
"}\n" |
5635 |
"}\n" |
5589 |
); |
5636 |
); |
5590 |
} |
5637 |
} |
5591 |
/** @deprecated As using a depreciated constant */ |
|
|
5592 |
public void testBug110060_FieldPattern01() throws CoreException { |
5638 |
public void testBug110060_FieldPattern01() throws CoreException { |
5593 |
setUpBug110060_FieldPattern(); |
5639 |
setUpBug110060_FieldPattern(); |
5594 |
search("aFWSD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5640 |
search("aFWSD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5599-5624
Link Here
|
5599 |
"src/b110060/Test.java void b110060.Test.testReferences() [aFieldWith$Several$DollarslAnd1DigitAnd_1Underscore] EXACT_MATCH" |
5645 |
"src/b110060/Test.java void b110060.Test.testReferences() [aFieldWith$Several$DollarslAnd1DigitAnd_1Underscore] EXACT_MATCH" |
5600 |
); |
5646 |
); |
5601 |
} |
5647 |
} |
5602 |
public void testBug110060_FieldPattern01new() throws CoreException { |
5648 |
public void testBug110060_FieldPattern01_SamePartCount() throws CoreException { |
5603 |
setUpBug110060_FieldPattern(); |
5649 |
setUpBug110060_FieldPattern(); |
5604 |
search("aFWSD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5650 |
search("aFWSD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5605 |
assertSearchResults( |
5651 |
assertSearchResults( |
5606 |
"src/b110060/Test.java b110060.Test.aFieldWithS$Dollar [aFieldWithS$Dollar] EXACT_MATCH\n" + |
5652 |
"src/b110060/Test.java b110060.Test.aFieldWithS$Dollar [aFieldWithS$Dollar] EXACT_MATCH\n" + |
5607 |
"src/b110060/Test.java void b110060.Test.testReferences() [aFieldWithS$Dollar] EXACT_MATCH" |
5653 |
"src/b110060/Test.java void b110060.Test.testReferences() [aFieldWithS$Dollar] EXACT_MATCH" |
5608 |
); |
5654 |
); |
5609 |
} |
5655 |
} |
5610 |
/** @deprecated As using a depreciated constant */ |
|
|
5611 |
public void testBug110060_FieldPattern02() throws CoreException { |
5656 |
public void testBug110060_FieldPattern02() throws CoreException { |
5612 |
setUpBug110060_FieldPattern(); |
5657 |
setUpBug110060_FieldPattern(); |
5613 |
search("afwsd", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5658 |
search("afwsd", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5614 |
assertSearchResults(""); |
5659 |
assertSearchResults(""); |
5615 |
} |
5660 |
} |
5616 |
public void testBug110060_FieldPattern02new() throws CoreException { |
5661 |
public void testBug110060_FieldPattern02_SamePartCount() throws CoreException { |
5617 |
setUpBug110060_FieldPattern(); |
5662 |
setUpBug110060_FieldPattern(); |
5618 |
search("afwsd", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5663 |
search("afwsd", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5619 |
assertSearchResults(""); |
5664 |
assertSearchResults(""); |
5620 |
} |
5665 |
} |
5621 |
/** @deprecated As using a depreciated constant */ |
|
|
5622 |
public void testBug110060_FieldPattern03() throws CoreException { |
5666 |
public void testBug110060_FieldPattern03() throws CoreException { |
5623 |
setUpBug110060_FieldPattern(); |
5667 |
setUpBug110060_FieldPattern(); |
5624 |
search("aFWS$", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5668 |
search("aFWS$", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5627-5640
Link Here
|
5627 |
"src/b110060/Test.java void b110060.Test.testReferences() [aFieldWithS$Dollar] EXACT_MATCH" |
5671 |
"src/b110060/Test.java void b110060.Test.testReferences() [aFieldWithS$Dollar] EXACT_MATCH" |
5628 |
); |
5672 |
); |
5629 |
} |
5673 |
} |
5630 |
public void testBug110060_FieldPattern03new() throws CoreException { |
5674 |
public void testBug110060_FieldPattern03_SamePartCount() throws CoreException { |
5631 |
setUpBug110060_FieldPattern(); |
5675 |
setUpBug110060_FieldPattern(); |
5632 |
search("aFWS$", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5676 |
search("aFWS$", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5633 |
assertSearchResults( |
5677 |
assertSearchResults(""); |
5634 |
"" // no result as prefix match is not set |
|
|
5635 |
); |
5636 |
} |
5678 |
} |
5637 |
/** @deprecated As using a depreciated constant */ |
|
|
5638 |
public void testBug110060_FieldPattern04() throws CoreException { |
5679 |
public void testBug110060_FieldPattern04() throws CoreException { |
5639 |
setUpBug110060_FieldPattern(); |
5680 |
setUpBug110060_FieldPattern(); |
5640 |
search("aSFWSCD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5681 |
search("aSFWSCD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5643-5657
Link Here
|
5643 |
"src/b110060/Test.java void b110060.Test.testReferences() [aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars] EXACT_MATCH" |
5684 |
"src/b110060/Test.java void b110060.Test.testReferences() [aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars] EXACT_MATCH" |
5644 |
); |
5685 |
); |
5645 |
} |
5686 |
} |
5646 |
public void testBug110060_FieldPattern04new() throws CoreException { |
5687 |
public void testBug110060_FieldPattern04_SamePartCount() throws CoreException { |
5647 |
setUpBug110060_FieldPattern(); |
5688 |
setUpBug110060_FieldPattern(); |
5648 |
search("aSFWSCD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5689 |
search("aSFWSCD", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5649 |
assertSearchResults( |
5690 |
assertSearchResults( |
5650 |
"src/b110060/Test.java b110060.Test.aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars [aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars] EXACT_MATCH\n" + |
5691 |
"src/b110060/Test.java b110060.Test.aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars [aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars] EXACT_MATCH\n" + |
5651 |
"src/b110060/Test.java void b110060.Test.testReferences() [aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars] EXACT_MATCH" |
5692 |
"src/b110060/Test.java void b110060.Test.testReferences() [aStrangeFieldWith$$$$$$$$$$$$$$$SeveraContiguousDollars] EXACT_MATCH" |
5652 |
); |
5693 |
); |
5653 |
} |
5694 |
} |
5654 |
/** @deprecated As using a depreciated constant */ |
|
|
5655 |
public void testBug110060_FieldPattern05() throws CoreException { |
5695 |
public void testBug110060_FieldPattern05() throws CoreException { |
5656 |
setUpBug110060_FieldPattern(); |
5696 |
setUpBug110060_FieldPattern(); |
5657 |
search("oF", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
5697 |
search("oF", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
Lines 5663-5669
Link Here
|
5663 |
} |
5703 |
} |
5664 |
public void testBug110060_FieldPattern05new() throws CoreException { |
5704 |
public void testBug110060_FieldPattern05new() throws CoreException { |
5665 |
setUpBug110060_FieldPattern(); |
5705 |
setUpBug110060_FieldPattern(); |
5666 |
search("oF", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
5706 |
search("oF", FIELD, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
5667 |
assertSearchResults( |
5707 |
assertSearchResults( |
5668 |
"src/b110060/Test.java b110060.Test.oF [oF] EXACT_MATCH" |
5708 |
"src/b110060/Test.java b110060.Test.oF [oF] EXACT_MATCH" |
5669 |
); |
5709 |
); |
Lines 5688-5694
Link Here
|
5688 |
} |
5728 |
} |
5689 |
|
5729 |
|
5690 |
/** |
5730 |
/** |
5691 |
* @test Bug 110336: [plan][search] Should optionaly return the local variable for type reference |
5731 |
* @test Bug 110336: [plan][search] Should optionally return the local variable for type reference |
5692 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=110336" |
5732 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=110336" |
5693 |
*/ |
5733 |
*/ |
5694 |
public void testBug110336a() throws CoreException { |
5734 |
public void testBug110336a() throws CoreException { |
Lines 6455-6717
Link Here
|
6455 |
* @test Ensure that camel case pattern may use end character |
6495 |
* @test Ensure that camel case pattern may use end character |
6456 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124624" |
6496 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124624" |
6457 |
*/ |
6497 |
*/ |
6458 |
public void testBug124624_HM_new() throws CoreException { |
6498 |
private void setupBug124624() throws JavaModelException { |
6459 |
workingCopies = new ICompilationUnit[1]; |
6499 |
workingCopies = new ICompilationUnit[1]; |
6460 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6500 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6461 |
"class HashMap {}\n" + |
6501 |
"class HashMap {}\n" + |
6462 |
"class HtmlMapper {}\n" + |
6502 |
"class HtmlMapper {}\n" + |
6463 |
"class HashMapEntry {}\n" + |
6503 |
"class HashMapEntry {}\n" + |
6464 |
"class HatMappage {}\n" |
6504 |
"class HaxMapxxxx {}\n" |
6465 |
); |
|
|
6466 |
search("HM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6467 |
assertSearchResults( |
6468 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6469 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6470 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6471 |
); |
6505 |
); |
6472 |
} |
6506 |
} |
6473 |
/** @deprecated As using a depreciated constant */ |
6507 |
public void testBug124624_HM_CamelCase() throws CoreException { |
6474 |
public void testBug124624_HM_old() throws CoreException { |
6508 |
setupBug124624(); |
6475 |
workingCopies = new ICompilationUnit[1]; |
|
|
6476 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6477 |
"class HashMap {}\n" + |
6478 |
"class HtmlMapper {}\n" + |
6479 |
"class HashMapEntry {}\n" + |
6480 |
"class HatMappage {}\n" |
6481 |
); |
6482 |
search("HM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6509 |
search("HM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6483 |
assertSearchResults( |
6510 |
assertSearchResults( |
6484 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6511 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6485 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6512 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6486 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6513 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6487 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6514 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6488 |
); |
6515 |
); |
6489 |
} |
6516 |
} |
6490 |
public void testBug124624_HaM_new() throws CoreException { |
6517 |
public void testBug124624_HM_CamelCaseSamePartCount() throws CoreException { |
6491 |
workingCopies = new ICompilationUnit[1]; |
6518 |
setupBug124624(); |
6492 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6519 |
search("HM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6493 |
"class HashMap {}\n" + |
|
|
6494 |
"class HtmlMapper {}\n" + |
6495 |
"class HashMapEntry {}\n" + |
6496 |
"class HatMappage {}\n" |
6497 |
); |
6498 |
search("HaM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6499 |
assertSearchResults( |
6520 |
assertSearchResults( |
6500 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6521 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6501 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6522 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
|
|
6523 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6502 |
); |
6524 |
); |
6503 |
} |
6525 |
} |
6504 |
/** @deprecated As using a depreciated constant */ |
6526 |
public void testBug124624_HaM_CamelCase() throws CoreException { |
6505 |
public void testBug124624_HaM_old() throws CoreException { |
6527 |
setupBug124624(); |
6506 |
workingCopies = new ICompilationUnit[1]; |
|
|
6507 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6508 |
"class HashMap {}\n" + |
6509 |
"class HtmlMapper {}\n" + |
6510 |
"class HashMapEntry {}\n" + |
6511 |
"class HatMappage {}\n" |
6512 |
); |
6513 |
search("HaM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6528 |
search("HaM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6514 |
assertSearchResults( |
6529 |
assertSearchResults( |
6515 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6530 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6516 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6531 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6517 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6532 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6518 |
); |
6533 |
); |
6519 |
} |
6534 |
} |
6520 |
public void testBug124624_HashM_new() throws CoreException { |
6535 |
public void testBug124624_HaM_CamelCaseSamePartCount() throws CoreException { |
6521 |
workingCopies = new ICompilationUnit[1]; |
6536 |
setupBug124624(); |
6522 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6537 |
search("HaM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6523 |
"class HashMap {}\n" + |
|
|
6524 |
"class HtmlMapper {}\n" + |
6525 |
"class HashMapEntry {}\n" + |
6526 |
"class HatMappage {}\n" |
6527 |
); |
6528 |
search("HashM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6529 |
assertSearchResults( |
6538 |
assertSearchResults( |
6530 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6539 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
|
|
6540 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6531 |
); |
6541 |
); |
6532 |
} |
6542 |
} |
6533 |
/** @deprecated As using a depreciated constant */ |
6543 |
public void testBug124624_HashM_CamelCase() throws CoreException { |
6534 |
public void testBug124624_HashM_old() throws CoreException { |
6544 |
setupBug124624(); |
6535 |
workingCopies = new ICompilationUnit[1]; |
|
|
6536 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6537 |
"class HashMap {}\n" + |
6538 |
"class HtmlMapper {}\n" + |
6539 |
"class HashMapEntry {}\n" + |
6540 |
"class HatMappage {}\n" |
6541 |
); |
6542 |
search("HashM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6545 |
search("HashM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6543 |
assertSearchResults( |
6546 |
assertSearchResults( |
6544 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6547 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6545 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6548 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6546 |
); |
6549 |
); |
6547 |
} |
6550 |
} |
6548 |
public void testBug124624_HMa_new() throws CoreException { |
6551 |
public void testBug124624_HashM_CamelCaseSamePartCount() throws CoreException { |
6549 |
workingCopies = new ICompilationUnit[1]; |
6552 |
setupBug124624(); |
6550 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6553 |
search("HashM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6551 |
"class HashMap {}\n" + |
6554 |
assertSearchResults( |
6552 |
"class HtmlMapper {}\n" + |
6555 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6553 |
"class HashMapEntry {}\n" + |
|
|
6554 |
"class HatMappage {}\n" |
6555 |
); |
6556 |
); |
6556 |
search("HMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
|
|
6557 |
assertSearchResults(""); |
6558 |
} |
6557 |
} |
6559 |
/** @deprecated As using a depreciated constant */ |
6558 |
public void testBug124624_HMa_CamelCase() throws CoreException { |
6560 |
public void testBug124624_HMa_old() throws CoreException { |
6559 |
setupBug124624(); |
6561 |
workingCopies = new ICompilationUnit[1]; |
|
|
6562 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6563 |
"class HashMap {}\n" + |
6564 |
"class HtmlMapper {}\n" + |
6565 |
"class HashMapEntry {}\n" + |
6566 |
"class HatMappage {}\n" |
6567 |
); |
6568 |
search("HMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6560 |
search("HMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6569 |
assertSearchResults( |
6561 |
assertSearchResults( |
6570 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6562 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6571 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6563 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6572 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6564 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6573 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6565 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6574 |
); |
6566 |
); |
6575 |
} |
6567 |
} |
6576 |
public void testBug124624_HaMa_new() throws CoreException { |
6568 |
public void testBug124624_HMa_CamelCaseSamePartCount() throws CoreException { |
6577 |
workingCopies = new ICompilationUnit[1]; |
6569 |
setupBug124624(); |
6578 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6570 |
search("HMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6579 |
"class HashMap {}\n" + |
6571 |
assertSearchResults( |
6580 |
"class HtmlMapper {}\n" + |
6572 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6581 |
"class HashMapEntry {}\n" + |
6573 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6582 |
"class HatMappage {}\n" |
6574 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6583 |
); |
6575 |
); |
6584 |
search("HaMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
|
|
6585 |
assertSearchResults(""); |
6586 |
} |
6576 |
} |
6587 |
/** @deprecated As using a depreciated constant */ |
6577 |
public void testBug124624_HaMa_CamelCase() throws CoreException { |
6588 |
public void testBug124624_HaMa_old() throws CoreException { |
6578 |
setupBug124624(); |
6589 |
workingCopies = new ICompilationUnit[1]; |
6579 |
search("HaMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6590 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
|
|
6591 |
"class HashMap {}\n" + |
6592 |
"class HtmlMapper {}\n" + |
6593 |
"class HashMapEntry {}\n" + |
6594 |
"class HatMappage {}\n" |
6595 |
); |
6596 |
search("HashMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6597 |
assertSearchResults( |
6580 |
assertSearchResults( |
6598 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6581 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6599 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6582 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
|
|
6583 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6600 |
); |
6584 |
); |
6601 |
} |
6585 |
} |
6602 |
public void testBug124624_HashMa_new() throws CoreException { |
6586 |
public void testBug124624_HaMa_CamelCaseSamePartCount() throws CoreException { |
6603 |
workingCopies = new ICompilationUnit[1]; |
6587 |
setupBug124624(); |
6604 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6588 |
search("HaMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6605 |
"class HashMap {}\n" + |
6589 |
assertSearchResults( |
6606 |
"class HtmlMapper {}\n" + |
6590 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6607 |
"class HashMapEntry {}\n" + |
6591 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6608 |
"class HatMappage {}\n" |
|
|
6609 |
); |
6592 |
); |
6610 |
search("HashMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
|
|
6611 |
assertSearchResults(""); |
6612 |
} |
6593 |
} |
6613 |
/** @deprecated As using a depreciated constant */ |
6594 |
public void testBug124624_HashMa_CamelCase() throws CoreException { |
6614 |
public void testBug124624_HashMa_old() throws CoreException { |
6595 |
setupBug124624(); |
6615 |
workingCopies = new ICompilationUnit[1]; |
6596 |
search("HashMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6616 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
|
|
6617 |
"class HashMap {}\n" + |
6618 |
"class HtmlMapper {}\n" + |
6619 |
"class HashMapEntry {}\n" + |
6620 |
"class HatMappage {}\n" |
6621 |
); |
6622 |
search("HashM", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6623 |
assertSearchResults( |
6597 |
assertSearchResults( |
6624 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6598 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6625 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6599 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6626 |
); |
6600 |
); |
6627 |
} |
6601 |
} |
6628 |
public void testBug124624_HMap_new() throws CoreException { |
6602 |
public void testBug124624_HashMa_CamelCaseSamePartCount() throws CoreException { |
6629 |
workingCopies = new ICompilationUnit[1]; |
6603 |
setupBug124624(); |
6630 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6604 |
search("HashMa", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6631 |
"class HashMap {}\n" + |
|
|
6632 |
"class HtmlMapper {}\n" + |
6633 |
"class HashMapEntry {}\n" + |
6634 |
"class HatMappage {}\n" |
6635 |
); |
6636 |
search("HMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6637 |
assertSearchResults( |
6605 |
assertSearchResults( |
6638 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6606 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6639 |
); |
6607 |
); |
6640 |
} |
6608 |
} |
6641 |
/** @deprecated As using a depreciated constant */ |
6609 |
public void testBug124624_HMap_CamelCase() throws CoreException { |
6642 |
public void testBug124624_HMap_old() throws CoreException { |
6610 |
setupBug124624(); |
6643 |
workingCopies = new ICompilationUnit[1]; |
|
|
6644 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6645 |
"class HashMap {}\n" + |
6646 |
"class HtmlMapper {}\n" + |
6647 |
"class HashMapEntry {}\n" + |
6648 |
"class HatMappage {}\n" |
6649 |
); |
6650 |
search("HMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6611 |
search("HMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6651 |
assertSearchResults( |
6612 |
assertSearchResults( |
6652 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6613 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6653 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6614 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6654 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6615 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6655 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6616 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6656 |
); |
6617 |
); |
6657 |
} |
6618 |
} |
6658 |
public void testBug124624_HaMap_new() throws CoreException { |
6619 |
public void testBug124624_HMap_CamelCaseSamePartCount() throws CoreException { |
6659 |
workingCopies = new ICompilationUnit[1]; |
6620 |
setupBug124624(); |
6660 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6621 |
search("HMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6661 |
"class HashMap {}\n" + |
|
|
6662 |
"class HtmlMapper {}\n" + |
6663 |
"class HashMapEntry {}\n" + |
6664 |
"class HatMappage {}\n" |
6665 |
); |
6666 |
search("HaMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6667 |
assertSearchResults( |
6622 |
assertSearchResults( |
6668 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6623 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
|
|
6624 |
"src/Test.java HtmlMapper [HtmlMapper] EXACT_MATCH\n" + |
6625 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6669 |
); |
6626 |
); |
6670 |
} |
6627 |
} |
6671 |
/** @deprecated As using a depreciated constant */ |
6628 |
public void testBug124624_HaMap_CamelCase() throws CoreException { |
6672 |
public void testBug124624_HaMap_old() throws CoreException { |
6629 |
setupBug124624(); |
6673 |
workingCopies = new ICompilationUnit[1]; |
|
|
6674 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6675 |
"class HashMap {}\n" + |
6676 |
"class HtmlMapper {}\n" + |
6677 |
"class HashMapEntry {}\n" + |
6678 |
"class HatMappage {}\n" |
6679 |
); |
6680 |
search("HaMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6630 |
search("HaMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6681 |
assertSearchResults( |
6631 |
assertSearchResults( |
6682 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6632 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6683 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6633 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH\n" + |
6684 |
"src/Test.java HatMappage [HatMappage] EXACT_MATCH" |
6634 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6685 |
); |
6635 |
); |
6686 |
} |
6636 |
} |
6687 |
public void testBug124624_HashMap_new() throws CoreException { |
6637 |
public void testBug124624_HaMap_CamelCaseSamePartCount() throws CoreException { |
6688 |
workingCopies = new ICompilationUnit[1]; |
6638 |
setupBug124624(); |
6689 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6639 |
search("HaMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6690 |
"class HashMap {}\n" + |
|
|
6691 |
"class HtmlMapper {}\n" + |
6692 |
"class HashMapEntry {}\n" + |
6693 |
"class HatMappage {}\n" |
6694 |
); |
6695 |
search("HashMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6696 |
assertSearchResults( |
6640 |
assertSearchResults( |
6697 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6641 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
|
|
6642 |
"src/Test.java HaxMapxxxx [HaxMapxxxx] EXACT_MATCH" |
6698 |
); |
6643 |
); |
6699 |
} |
6644 |
} |
6700 |
/** @deprecated As using a depreciated constant */ |
6645 |
public void testBug124624_HashMap_CamelCase() throws CoreException { |
6701 |
public void testBug124624_HashMap_old() throws CoreException { |
6646 |
setupBug124624(); |
6702 |
workingCopies = new ICompilationUnit[1]; |
|
|
6703 |
workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/Test.java", |
6704 |
"class HashMap {}\n" + |
6705 |
"class HtmlMapper {}\n" + |
6706 |
"class HashMapEntry {}\n" + |
6707 |
"class HatMappage {}\n" |
6708 |
); |
6709 |
search("HashMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6647 |
search("HashMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6710 |
assertSearchResults( |
6648 |
assertSearchResults( |
6711 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6649 |
"src/Test.java HashMap [HashMap] EXACT_MATCH\n" + |
6712 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6650 |
"src/Test.java HashMapEntry [HashMapEntry] EXACT_MATCH" |
6713 |
); |
6651 |
); |
6714 |
} |
6652 |
} |
|
|
6653 |
public void testBug124624_HashMap_CamelCaseSamePartCount() throws CoreException { |
6654 |
setupBug124624(); |
6655 |
search("HashMap", IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6656 |
assertSearchResults( |
6657 |
"src/Test.java HashMap [HashMap] EXACT_MATCH" |
6658 |
); |
6659 |
} |
6715 |
|
6660 |
|
6716 |
/** |
6661 |
/** |
6717 |
* @test Bug 124645: [search] for implementors does not find subclasses of binary classes |
6662 |
* @test Bug 124645: [search] for implementors does not find subclasses of binary classes |
Lines 6906-6928
Link Here
|
6906 |
"}\n" |
6851 |
"}\n" |
6907 |
); |
6852 |
); |
6908 |
} |
6853 |
} |
6909 |
/** @deprecated As using a depreciated constant */ |
6854 |
public void testBug130390_CamelCase() throws CoreException { |
6910 |
public void testBug130390() throws CoreException { |
|
|
6911 |
setUpBug130390(); |
6855 |
setUpBug130390(); |
6912 |
search("NuPoEx", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6856 |
search("NuPoEx", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6913 |
assertSearchResults( |
6857 |
assertSearchResults( |
6914 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6858 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6915 |
); |
6859 |
); |
6916 |
} |
6860 |
} |
6917 |
public void testBug130390_new() throws CoreException { |
6861 |
public void testBug130390_CamelCaseSamePartCount() throws CoreException { |
6918 |
setUpBug130390(); |
6862 |
setUpBug130390(); |
6919 |
search("NuPoEx", TYPE, DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6863 |
search("NuPoEx", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6920 |
assertSearchResults( |
6864 |
assertSearchResults( |
6921 |
"" // no result as prefix match is not set |
6865 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6922 |
); |
6866 |
); |
6923 |
} |
6867 |
} |
6924 |
/** @deprecated As using a depreciated constant */ |
6868 |
public void testBug130390b_CamelCase() throws CoreException { |
6925 |
public void testBug130390b() throws CoreException { |
|
|
6926 |
setUpBug130390(); |
6869 |
setUpBug130390(); |
6927 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6870 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH); |
6928 |
assertSearchResults( |
6871 |
assertSearchResults( |
Lines 6930-7005
Link Here
|
6930 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6873 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6931 |
); |
6874 |
); |
6932 |
} |
6875 |
} |
6933 |
public void testBug130390b_new() throws CoreException { |
6876 |
public void testBug130390b_CamelCaseSamePartCount() throws CoreException { |
6934 |
setUpBug130390(); |
6877 |
setUpBug130390(); |
6935 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH); |
6878 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6936 |
assertSearchResults( |
6879 |
assertSearchResults( |
6937 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH\n" + |
|
|
6938 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6880 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6939 |
); |
6881 |
); |
6940 |
} |
6882 |
} |
6941 |
/** @deprecated As using a depreciated constant */ |
6883 |
public void testBug130390c_CamelCase() throws CoreException { |
6942 |
public void testBug130390c() throws CoreException { |
|
|
6943 |
setUpBug130390(); |
6884 |
setUpBug130390(); |
6944 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6885 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6945 |
assertSearchResults( |
6886 |
assertSearchResults( |
6946 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6887 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6947 |
); |
6888 |
); |
6948 |
} |
6889 |
} |
6949 |
public void testBug130390c_new() throws CoreException { |
6890 |
public void testBug130390c_CamelCaseSamePartCount() throws CoreException { |
6950 |
setUpBug130390(); |
6891 |
setUpBug130390(); |
6951 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6892 |
search("NPE", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6952 |
assertSearchResults( |
6893 |
assertSearchResults( |
6953 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6894 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6954 |
); |
6895 |
); |
6955 |
} |
6896 |
} |
6956 |
/** @deprecated As using a depreciated constant */ |
6897 |
public void testBug130390d_CamelCase() throws CoreException { |
6957 |
public void testBug130390d() throws CoreException { |
|
|
6958 |
setUpBug130390(); |
6898 |
setUpBug130390(); |
6959 |
search("Npe", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
6899 |
search("Npe", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
6960 |
assertSearchResults( |
6900 |
assertSearchResults( |
6961 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6901 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6962 |
); |
6902 |
); |
6963 |
} |
6903 |
} |
6964 |
public void testBug130390d_new() throws CoreException { |
6904 |
public void testBug130390d_CamelCaseSamePartCount() throws CoreException { |
6965 |
setUpBug130390(); |
6905 |
setUpBug130390(); |
6966 |
search("Npe", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
6906 |
search("Npe", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6967 |
assertSearchResults( |
6907 |
assertSearchResults( |
6968 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6908 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6969 |
); |
6909 |
); |
6970 |
} |
6910 |
} |
6971 |
/** @deprecated As using a depreciated constant */ |
6911 |
public void testBug130390e_CamelCase() throws CoreException { |
6972 |
public void testBug130390e() throws CoreException { |
|
|
6973 |
setUpBug130390(); |
6912 |
setUpBug130390(); |
6974 |
search("Npe", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6913 |
search("Npe", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6975 |
assertSearchResults( |
6914 |
assertSearchResults( |
6976 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6915 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6977 |
); |
6916 |
); |
6978 |
} |
6917 |
} |
6979 |
public void testBug130390e_new() throws CoreException { |
6918 |
public void testBug130390e_CamelCaseSamePartCount() throws CoreException { |
6980 |
setUpBug130390(); |
6919 |
setUpBug130390(); |
6981 |
search("Npe", TYPE, DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6920 |
search("Npe", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6982 |
assertSearchResults( |
6921 |
assertSearchResults( |
6983 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6922 |
"src/b130390/Npe.java b130390.Npe [Npe] EXACT_MATCH" |
6984 |
); |
6923 |
); |
6985 |
} |
6924 |
} |
6986 |
/** @deprecated As using a depreciated constant */ |
6925 |
public void testBug130390f_CamelCase() throws CoreException { |
6987 |
public void testBug130390f() throws CoreException { |
|
|
6988 |
setUpBug130390(); |
6926 |
setUpBug130390(); |
6989 |
search("NullPE", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
6927 |
search("NullPE", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_MATCH); |
6990 |
assertSearchResults( |
6928 |
assertSearchResults( |
6991 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6929 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6992 |
); |
6930 |
); |
6993 |
} |
6931 |
} |
6994 |
public void testBug130390f_new() throws CoreException { |
6932 |
public void testBug130390f_CamelCaseSamePartCount() throws CoreException { |
6995 |
setUpBug130390(); |
6933 |
setUpBug130390(); |
6996 |
search("NullPE", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMEL_CASE_MATCH); |
6934 |
search("NullPE", TYPE, ALL_OCCURRENCES, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH); |
6997 |
assertSearchResults( |
6935 |
assertSearchResults( |
6998 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6936 |
"src/b130390/NullPointerException.java b130390.NullPointerException [NullPointerException] EXACT_MATCH" |
6999 |
); |
6937 |
); |
7000 |
} |
6938 |
} |
7001 |
/** @deprecated As using a depreciated constant */ |
6939 |
public void testBug130390g_CamelCase() throws CoreException { |
7002 |
public void testBug130390g() throws CoreException { |
|
|
7003 |
setUpBug130390(); |
6940 |
setUpBug130390(); |
7004 |
search("TZ", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6941 |
search("TZ", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
7005 |
assertSearchResults( |
6942 |
assertSearchResults( |
Lines 7007-7025
Link Here
|
7007 |
"src/b130390/TimeZone.java b130390.TimeZone [TimeZone] EXACT_MATCH" |
6944 |
"src/b130390/TimeZone.java b130390.TimeZone [TimeZone] EXACT_MATCH" |
7008 |
); |
6945 |
); |
7009 |
} |
6946 |
} |
7010 |
public void testBug130390g_new() throws CoreException { |
6947 |
public void testBug130390g_CamelCaseSamePartCount() throws CoreException { |
7011 |
setUpBug130390(); |
6948 |
setUpBug130390(); |
7012 |
search("TZ", TYPE, DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6949 |
search("TZ", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE); |
7013 |
assertSearchResults( |
6950 |
assertSearchResults( |
7014 |
"src/b130390/TZ.java b130390.TZ [TZ] EXACT_MATCH\n" + |
6951 |
"src/b130390/TZ.java b130390.TZ [TZ] EXACT_MATCH\n" + |
7015 |
"src/b130390/TimeZone.java b130390.TimeZone [TimeZone] EXACT_MATCH" |
6952 |
"src/b130390/TimeZone.java b130390.TimeZone [TimeZone] EXACT_MATCH" |
7016 |
); |
6953 |
); |
7017 |
} |
6954 |
} |
7018 |
public void testBug130390h() throws CoreException { |
6955 |
public void testBug130390h_CamelCase() throws CoreException { |
7019 |
setUpBug130390(); |
6956 |
setUpBug130390(); |
7020 |
search("TiZo", TYPE, DECLARATIONS, SearchPattern.R_CAMEL_CASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6957 |
search("TiZo", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_MATCH | SearchPattern.R_CASE_SENSITIVE); |
7021 |
assertSearchResults( |
6958 |
assertSearchResults( |
7022 |
"" // no result as prefix match is not set |
6959 |
"src/b130390/TimeZone.java b130390.TimeZone [TimeZone] EXACT_MATCH" |
|
|
6960 |
); |
6961 |
} |
6962 |
public void testBug130390h_CamelCaseSamePartCount() throws CoreException { |
6963 |
setUpBug130390(); |
6964 |
search("TiZo", TYPE, DECLARATIONS, SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH | SearchPattern.R_CASE_SENSITIVE); |
6965 |
assertSearchResults( |
6966 |
"src/b130390/TimeZone.java b130390.TimeZone [TimeZone] EXACT_MATCH" |
7023 |
); |
6967 |
); |
7024 |
} |
6968 |
} |
7025 |
|
6969 |
|
Lines 7029-7037
Link Here
|
7029 |
* |
6973 |
* |
7030 |
* @bug 137087: Open Type - missing matches when using mixed case pattern |
6974 |
* @bug 137087: Open Type - missing matches when using mixed case pattern |
7031 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=137087" |
6975 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=137087" |
7032 |
* @deprecated As using a depreciated constant |
|
|
7033 |
*/ |
6976 |
*/ |
7034 |
public void testBug137087() throws CoreException { |
6977 |
public void testBug137087_CamelCase() throws CoreException { |
7035 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
6978 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7036 |
String pattern = "runtimeEx"; |
6979 |
String pattern = "runtimeEx"; |
7037 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
6980 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7039-7046
Link Here
|
7039 |
""+ getExternalJCLPathString("1.5") + " java.lang.RuntimeException EXACT_MATCH" |
6982 |
""+ getExternalJCLPathString("1.5") + " java.lang.RuntimeException EXACT_MATCH" |
7040 |
); |
6983 |
); |
7041 |
} |
6984 |
} |
7042 |
/** @deprecated As using a depreciated constant */ |
6985 |
public void testBug137087b_CamelCase() throws CoreException { |
7043 |
public void testBug137087b() throws CoreException { |
|
|
7044 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
6986 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7045 |
String pattern = "Runtimeex"; |
6987 |
String pattern = "Runtimeex"; |
7046 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
6988 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7048-7065
Link Here
|
7048 |
""+ getExternalJCLPathString("1.5") + " java.lang.RuntimeException EXACT_MATCH" |
6990 |
""+ getExternalJCLPathString("1.5") + " java.lang.RuntimeException EXACT_MATCH" |
7049 |
); |
6991 |
); |
7050 |
} |
6992 |
} |
7051 |
/** @deprecated As using a depreciated constant */ |
6993 |
public void testBug137087c_CamelCase() throws CoreException { |
7052 |
public void testBug137087c() throws CoreException { |
|
|
7053 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
6994 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7054 |
String pattern = "runtimeexception"; |
6995 |
String pattern = "runtimeexception"; |
7055 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
6996 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7056 |
assertSearchResults( |
6997 |
assertSearchResults( |
7057 |
"" // no result because it's an invalid camel case pattern which is replaced with |
6998 |
""+ getExternalJCLPathString("1.5") + " java.lang.RuntimeException EXACT_MATCH" |
7058 |
// prefix case sensitive match bu SearchPatter.validateMatchRule(...) (old behavior) |
|
|
7059 |
); |
6999 |
); |
7060 |
} |
7000 |
} |
7061 |
/** @deprecated As using a depreciated constant */ |
7001 |
public void testBug137087d_CamelCase() throws CoreException { |
7062 |
public void testBug137087d() throws CoreException { |
|
|
7063 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7002 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7064 |
String pattern = "Runtimexception"; |
7003 |
String pattern = "Runtimexception"; |
7065 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7004 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7067-7074
Link Here
|
7067 |
"" // no match expected as pattern is missing a 'e' |
7006 |
"" // no match expected as pattern is missing a 'e' |
7068 |
); |
7007 |
); |
7069 |
} |
7008 |
} |
7070 |
/** @deprecated As using a depreciated constant */ |
7009 |
public void testBug137087e_CamelCase() throws CoreException { |
7071 |
public void testBug137087e() throws CoreException { |
|
|
7072 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7010 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7073 |
String pattern = "IllegalMSException"; |
7011 |
String pattern = "IllegalMSException"; |
7074 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7012 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7076-7083
Link Here
|
7076 |
""+ getExternalJCLPathString("1.5") + " java.lang.IllegalMonitorStateException EXACT_MATCH" |
7014 |
""+ getExternalJCLPathString("1.5") + " java.lang.IllegalMonitorStateException EXACT_MATCH" |
7077 |
); |
7015 |
); |
7078 |
} |
7016 |
} |
7079 |
/** @deprecated As using a depreciated constant */ |
7017 |
public void testBug137087f_CamelCase() throws CoreException { |
7080 |
public void testBug137087f() throws CoreException { |
|
|
7081 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7018 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7082 |
String pattern = "illegalMsExceptionSException"; |
7019 |
String pattern = "illegalMsExceptionSException"; |
7083 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7020 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7085-7102
Link Here
|
7085 |
"" // expected no result as uppercase characters in pattern do not match any camelcase ones in existing types |
7022 |
"" // expected no result as uppercase characters in pattern do not match any camelcase ones in existing types |
7086 |
); |
7023 |
); |
7087 |
} |
7024 |
} |
7088 |
/** @deprecated As using a depreciated constant */ |
7025 |
public void testBug137087g_CamelCase() throws CoreException { |
7089 |
public void testBug137087g() throws CoreException { |
|
|
7090 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7026 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7091 |
String pattern = "clonenotsupportedex"; |
7027 |
String pattern = "clonenotsupportedex"; |
7092 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7028 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7093 |
assertSearchResults( |
7029 |
assertSearchResults( |
7094 |
"" // no result because it's an invalid camel case pattern which is replaced with |
7030 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7095 |
// prefix case sensitive match bu SearchPatter.validateMatchRule(...) (old behavior) |
|
|
7096 |
); |
7031 |
); |
7097 |
} |
7032 |
} |
7098 |
/** @deprecated As using a depreciated constant */ |
7033 |
public void testBug137087h_CamelCase() throws CoreException { |
7099 |
public void testBug137087h() throws CoreException { |
|
|
7100 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7034 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7101 |
String pattern = "CloneNotSupportedEx"; |
7035 |
String pattern = "CloneNotSupportedEx"; |
7102 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7036 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7104-7111
Link Here
|
7104 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7038 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7105 |
); |
7039 |
); |
7106 |
} |
7040 |
} |
7107 |
/** @deprecated As using a depreciated constant */ |
7041 |
public void testBug137087i_CamelCase() throws CoreException { |
7108 |
public void testBug137087i() throws CoreException { |
|
|
7109 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7042 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7110 |
String pattern = "cloneNotsupportedEx"; |
7043 |
String pattern = "cloneNotsupportedEx"; |
7111 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7044 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7113-7120
Link Here
|
7113 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7046 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7114 |
); |
7047 |
); |
7115 |
} |
7048 |
} |
7116 |
/** @deprecated As using a depreciated constant */ |
7049 |
public void testBug137087j_CamelCase() throws CoreException { |
7117 |
public void testBug137087j() throws CoreException { |
|
|
7118 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7050 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7119 |
String pattern = "ClonenotSupportedexc"; |
7051 |
String pattern = "ClonenotSupportedexc"; |
7120 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7052 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7122-7129
Link Here
|
7122 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7054 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7123 |
); |
7055 |
); |
7124 |
} |
7056 |
} |
7125 |
/** @deprecated As using a depreciated constant */ |
7057 |
public void testBug137087k_CamelCase() throws CoreException { |
7126 |
public void testBug137087k() throws CoreException { |
|
|
7127 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7058 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7128 |
String pattern = "cloneNotSupportedExcep"; |
7059 |
String pattern = "cloneNotSupportedExcep"; |
7129 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7060 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7131-7138
Link Here
|
7131 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7062 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7132 |
); |
7063 |
); |
7133 |
} |
7064 |
} |
7134 |
/** @deprecated As using a depreciated constant */ |
7065 |
public void testBug137087l_CamelCase() throws CoreException { |
7135 |
public void testBug137087l() throws CoreException { |
|
|
7136 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7066 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7137 |
String pattern = "Clonenotsupportedexception"; |
7067 |
String pattern = "Clonenotsupportedexception"; |
7138 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7068 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7140-7147
Link Here
|
7140 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7070 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7141 |
); |
7071 |
); |
7142 |
} |
7072 |
} |
7143 |
/** @deprecated As using a depreciated constant */ |
7073 |
public void testBug137087m_CamelCase() throws CoreException { |
7144 |
public void testBug137087m() throws CoreException { |
|
|
7145 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7074 |
int matchRule = SearchPattern.R_CAMELCASE_MATCH; |
7146 |
String pattern = "CloneNotSupportedException"; |
7075 |
String pattern = "CloneNotSupportedException"; |
7147 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7076 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
Lines 7149-7154
Link Here
|
7149 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7078 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7150 |
); |
7079 |
); |
7151 |
} |
7080 |
} |
|
|
7081 |
// Same tests using SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH |
7082 |
public void testBug137087_CamelCaseSamePartCount() throws CoreException { |
7083 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7084 |
String pattern = "runtimeEx"; |
7085 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7086 |
assertSearchResults(""); |
7087 |
} |
7088 |
public void testBug137087b_CamelCaseSamePartCount() throws CoreException { |
7089 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7090 |
String pattern = "Runtimeex"; |
7091 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7092 |
assertSearchResults(""); |
7093 |
} |
7094 |
public void testBug137087c_CamelCaseSamePartCount() throws CoreException { |
7095 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7096 |
String pattern = "runtimeexception"; |
7097 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7098 |
assertSearchResults( |
7099 |
""+ getExternalJCLPathString("1.5") + " java.lang.RuntimeException EXACT_MATCH" |
7100 |
); |
7101 |
} |
7102 |
public void testBug137087d_CamelCaseSamePartCount() throws CoreException { |
7103 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7104 |
String pattern = "Runtimexception"; |
7105 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7106 |
assertSearchResults( |
7107 |
"" // no match expected as pattern is missing a 'e' |
7108 |
); |
7109 |
} |
7110 |
public void testBug137087e_CamelCaseSamePartCount() throws CoreException { |
7111 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7112 |
String pattern = "IllegalMSException"; |
7113 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7114 |
assertSearchResults( |
7115 |
""+ getExternalJCLPathString("1.5") + " java.lang.IllegalMonitorStateException EXACT_MATCH" |
7116 |
); |
7117 |
} |
7118 |
public void testBug137087f_CamelCaseSamePartCount() throws CoreException { |
7119 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7120 |
String pattern = "illegalMsExceptionSException"; |
7121 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7122 |
assertSearchResults( |
7123 |
"" // expected no result as uppercase characters in pattern do not match any camelcase ones in existing types |
7124 |
); |
7125 |
} |
7126 |
public void testBug137087g_CamelCaseSamePartCount() throws CoreException { |
7127 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7128 |
String pattern = "clonenotsupportedex"; |
7129 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7130 |
assertSearchResults( |
7131 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7132 |
); |
7133 |
} |
7134 |
public void testBug137087h_CamelCaseSamePartCount() throws CoreException { |
7135 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7136 |
String pattern = "CloneNotSupportedEx"; |
7137 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7138 |
assertSearchResults( |
7139 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7140 |
); |
7141 |
} |
7142 |
public void testBug137087i_CamelCaseSamePartCount() throws CoreException { |
7143 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7144 |
String pattern = "cloneNotsupportedEx"; |
7145 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7146 |
assertSearchResults(""); |
7147 |
} |
7148 |
public void testBug137087j_CamelCaseSamePartCount() throws CoreException { |
7149 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7150 |
String pattern = "ClonenotSupportedexc"; |
7151 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7152 |
assertSearchResults(""); |
7153 |
} |
7154 |
public void testBug137087k_CamelCaseSamePartCount() throws CoreException { |
7155 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7156 |
String pattern = "cloneNotSupportedExcep"; |
7157 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7158 |
assertSearchResults(""); |
7159 |
} |
7160 |
public void testBug137087l_CamelCaseSamePartCount() throws CoreException { |
7161 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7162 |
String pattern = "Clonenotsupportedexception"; |
7163 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7164 |
assertSearchResults(""); |
7165 |
} |
7166 |
public void testBug137087m_CamelCaseSamePartCount() throws CoreException { |
7167 |
int matchRule = SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH; |
7168 |
String pattern = "CloneNotSupportedException"; |
7169 |
search(pattern, TYPE, DECLARATIONS, matchRule); |
7170 |
assertSearchResults( |
7171 |
""+ getExternalJCLPathString("1.5") + " java.lang.CloneNotSupportedException EXACT_MATCH" |
7172 |
); |
7173 |
} |
7152 |
|
7174 |
|
7153 |
/** |
7175 |
/** |
7154 |
* Bug 137984: [search] Field references not found when type is a qualified member type [regression] |
7176 |
* Bug 137984: [search] Field references not found when type is a qualified member type [regression] |
Lines 8844-8891
Link Here
|
8844 |
* @test Ensure that indexing still works properly after close/restart |
8866 |
* @test Ensure that indexing still works properly after close/restart |
8845 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=201064" |
8867 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=201064" |
8846 |
*/ |
8868 |
*/ |
8847 |
public void testBug201064() throws CoreException { |
8869 |
public void testBug201064a_CamelCase() throws CoreException { |
|
|
8870 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8871 |
searchAllTypeNames("CCase", SearchPattern.R_CAMELCASE_MATCH, collector); |
8872 |
assertSearchResults( |
8873 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8874 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8875 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8876 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8877 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8878 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8879 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8880 |
collector |
8881 |
); |
8882 |
} |
8883 |
public void testBug201064b_CamelCase() throws CoreException { |
8884 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8885 |
searchAllTypeNames("CaCase", SearchPattern.R_CAMELCASE_MATCH, collector); |
8886 |
assertSearchResults( |
8887 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8888 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8889 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8890 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8891 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8892 |
collector |
8893 |
); |
8894 |
} |
8895 |
public void testBug201064c_CamelCase() throws CoreException { |
8896 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8897 |
searchAllTypeNames("CamelCase", SearchPattern.R_CAMELCASE_MATCH, collector); |
8898 |
assertSearchResults( |
8899 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8900 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8901 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8902 |
collector |
8903 |
); |
8904 |
} |
8905 |
public void testBug201064d_CamelCase() throws CoreException { |
8906 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8907 |
searchAllTypeNames("CC", SearchPattern.R_CAMELCASE_MATCH, collector); |
8908 |
assertSearchResults( |
8909 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8910 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8911 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8912 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8913 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8914 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8915 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8916 |
collector |
8917 |
); |
8918 |
} |
8919 |
public void testBug201064e_CamelCase() throws CoreException { |
8920 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8921 |
searchAllTypeNames("CaC", SearchPattern.R_CAMELCASE_MATCH, collector); |
8922 |
assertSearchResults( |
8923 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8924 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8925 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8926 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8927 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8928 |
collector |
8929 |
); |
8930 |
} |
8931 |
public void testBug201064f_CamelCase() throws CoreException { |
8932 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8933 |
searchAllTypeNames("CamelC", SearchPattern.R_CAMELCASE_MATCH, collector); |
8934 |
assertSearchResults( |
8935 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8936 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8937 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8938 |
collector |
8939 |
); |
8940 |
} |
8941 |
public void testBug201064g_CamelCase() throws CoreException { |
8942 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8943 |
searchAllTypeNames("CCa", SearchPattern.R_CAMELCASE_MATCH, collector); |
8944 |
assertSearchResults( |
8945 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8946 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8947 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8948 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8949 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8950 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8951 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8952 |
collector |
8953 |
); |
8954 |
} |
8955 |
public void testBug201064h_CamelCase() throws CoreException { |
8956 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8957 |
searchAllTypeNames("CaCa", SearchPattern.R_CAMELCASE_MATCH, collector); |
8958 |
assertSearchResults( |
8959 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8960 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8961 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8962 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8963 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8964 |
collector |
8965 |
); |
8966 |
} |
8967 |
public void testBug201064i_CamelCase() throws CoreException { |
8968 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8969 |
searchAllTypeNames("CamelCa", SearchPattern.R_CAMELCASE_MATCH, collector); |
8970 |
assertSearchResults( |
8971 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8972 |
"CamelCaseEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8973 |
"CamelCasexxEntry (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8974 |
collector |
8975 |
); |
8976 |
} |
8977 |
// Same tests using SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH |
8978 |
public void testBug201064a_CamelCaseSamePartCount() throws CoreException { |
8848 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8979 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8849 |
searchAllTypeNames("CCase", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
8980 |
searchAllTypeNames("CCase", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8850 |
assertSearchResults( |
8981 |
assertSearchResults( |
8851 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8982 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8852 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8983 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8853 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8984 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
|
|
8985 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8986 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8854 |
collector |
8987 |
collector |
8855 |
); |
8988 |
); |
8856 |
} |
8989 |
} |
8857 |
public void testBug201064b() throws CoreException { |
8990 |
public void testBug201064b_CamelCaseSamePartCount() throws CoreException { |
8858 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8991 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8859 |
searchAllTypeNames("CaCase", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
8992 |
searchAllTypeNames("CaCase", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8860 |
assertSearchResults( |
8993 |
assertSearchResults( |
8861 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8994 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8862 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8995 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
|
|
8996 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8863 |
collector |
8997 |
collector |
8864 |
); |
8998 |
); |
8865 |
} |
8999 |
} |
8866 |
public void testBug201064c() throws CoreException { |
9000 |
public void testBug201064c_CamelCaseSamePartCount() throws CoreException { |
8867 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9001 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8868 |
searchAllTypeNames("CamelCase", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9002 |
searchAllTypeNames("CamelCase", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8869 |
assertSearchResults( |
9003 |
assertSearchResults( |
8870 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
9004 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8871 |
collector |
9005 |
collector |
8872 |
); |
9006 |
); |
8873 |
} |
9007 |
} |
8874 |
public void testBug201064d() throws CoreException { |
9008 |
public void testBug201064d_CamelCaseSamePartCount() throws CoreException { |
8875 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9009 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8876 |
searchAllTypeNames("CC", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9010 |
searchAllTypeNames("CC", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8877 |
assertSearchResults( |
9011 |
assertSearchResults( |
8878 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9012 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8879 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9013 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8880 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9014 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8881 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9015 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8882 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
9016 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8883 |
collector |
9017 |
collector |
8884 |
); |
9018 |
); |
8885 |
} |
9019 |
} |
8886 |
public void testBug201064e() throws CoreException { |
9020 |
public void testBug201064e_CamelCaseSamePartCount() throws CoreException { |
8887 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9021 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8888 |
searchAllTypeNames("CaC", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9022 |
searchAllTypeNames("CaC", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8889 |
assertSearchResults( |
9023 |
assertSearchResults( |
8890 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9024 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
8891 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9025 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
Lines 8893-8920
Link Here
|
8893 |
collector |
9027 |
collector |
8894 |
); |
9028 |
); |
8895 |
} |
9029 |
} |
8896 |
public void testBug201064f() throws CoreException { |
9030 |
public void testBug201064f_CamelCaseSamePartCount() throws CoreException { |
8897 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9031 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8898 |
searchAllTypeNames("CamelC", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9032 |
searchAllTypeNames("CamelC", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8899 |
assertSearchResults( |
9033 |
assertSearchResults( |
8900 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
9034 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
8901 |
collector |
9035 |
collector |
8902 |
); |
9036 |
); |
8903 |
} |
9037 |
} |
8904 |
public void testBug201064g() throws CoreException { |
9038 |
public void testBug201064g_CamelCaseSamePartCount() throws CoreException { |
8905 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9039 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8906 |
searchAllTypeNames("CCa", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9040 |
searchAllTypeNames("CCa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8907 |
assertSearchResults("", collector); |
9041 |
assertSearchResults( |
|
|
9042 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9043 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9044 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9045 |
"CxxCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9046 |
"CxxxxCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
9047 |
collector |
9048 |
); |
8908 |
} |
9049 |
} |
8909 |
public void testBug201064h() throws CoreException { |
9050 |
public void testBug201064h_CamelCaseSamePartCount() throws CoreException { |
8910 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9051 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8911 |
searchAllTypeNames("CaCa", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9052 |
searchAllTypeNames("CaCa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8912 |
assertSearchResults("", collector); |
9053 |
assertSearchResults( |
|
|
9054 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9055 |
"CatCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]\n" + |
9056 |
"CatCasexx (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
9057 |
collector |
9058 |
); |
8913 |
} |
9059 |
} |
8914 |
public void testBug201064i() throws CoreException { |
9060 |
public void testBug201064i_CamelCaseSamePartCount() throws CoreException { |
8915 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9061 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8916 |
searchAllTypeNames("CamelCa", SearchPattern.R_CAMEL_CASE_MATCH, collector); |
9062 |
searchAllTypeNames("CamelCa", SearchPattern.R_CAMELCASE_SAME_PART_COUNT_MATCH, collector); |
8917 |
assertSearchResults("", collector); |
9063 |
assertSearchResults( |
|
|
9064 |
"CamelCase (not open) [in CamelCase.java [in b201064 [in src [in JavaSearchBugs]]]]", |
9065 |
collector |
9066 |
); |
8918 |
} |
9067 |
} |
8919 |
|
9068 |
|
8920 |
/** |
9069 |
/** |
Lines 8928-8943
Link Here
|
8928 |
try { |
9077 |
try { |
8929 |
addLibraryEntry(javaProject, new Path("/JavaSearchBugs/b204652.jar"), false/*not exported*/); |
9078 |
addLibraryEntry(javaProject, new Path("/JavaSearchBugs/b204652.jar"), false/*not exported*/); |
8930 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
9079 |
TypeNameMatchCollector collector = new TypeNameMatchCollector(); |
8931 |
new SearchEngine().searchAllTypeNames( |
9080 |
searchAllTypeNames("b204652", null, SearchPattern.R_PREFIX_MATCH, collector); |
8932 |
"b204652".toCharArray(), |
|
|
8933 |
SearchPattern.R_EXACT_MATCH, |
8934 |
null, |
8935 |
SearchPattern.R_PREFIX_MATCH, |
8936 |
IJavaSearchConstants.TYPE, |
8937 |
getJavaSearchScope(), |
8938 |
collector, |
8939 |
IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, |
8940 |
null); |
8941 |
IPackageFragment pkg = getPackage("/JavaSearchBugs/b204652.jar/b204652"); |
9081 |
IPackageFragment pkg = getPackage("/JavaSearchBugs/b204652.jar/b204652"); |
8942 |
pkg.open(null); |
9082 |
pkg.open(null); |
8943 |
IType result = (IType) collector.matches.get(0); |
9083 |
IType result = (IType) collector.matches.get(0); |
Lines 8946-8950
Link Here
|
8946 |
javaProject.setRawClasspath(originalRawClasspath, null); |
9086 |
javaProject.setRawClasspath(originalRawClasspath, null); |
8947 |
} |
9087 |
} |
8948 |
} |
9088 |
} |
8949 |
|
|
|
8950 |
} |
9089 |
} |