@@ -23,8 +23,8 @@ public class JumpToTestOrCodeHandlerTest extends MoreUnitTestCase {
2323
2424 public void test__using_CamelCase_naming_and_Test_suffix__should_jump_from_production_code_to_test_code () throws Exception {
2525 // given
26- VirtualFile srcFile = mainModule .addFile ("src /pack/Foo.java" , "package pack; public class Foo() {}" );
27- VirtualFile testFile = mainModule .addFile ("test /pack/FooTest.java" , "package pack; public class FooTest() {}" );
26+ VirtualFile srcFile = mainModule .addFile ("src1 /pack/Foo.java" , "package pack; public class Foo() {}" );
27+ VirtualFile testFile = mainModule .addFile ("test1 /pack/FooTest.java" , "package pack; public class FooTest() {}" );
2828
2929 // when
3030 GotoData gotoData = jumpFrom (srcFile );
@@ -35,7 +35,7 @@ public void test__using_CamelCase_naming_and_Test_suffix__should_jump_from_produ
3535
3636 public void test_should_fail_silently_when_no_corresponding_file_is_found () {
3737 // given
38- VirtualFile srcFileWithoutTestCounterpart = mainModule .addFile ("src /FileWithoutTestCounterpart.java" ,
38+ VirtualFile srcFileWithoutTestCounterpart = mainModule .addFile ("src1 /FileWithoutTestCounterpart.java" ,
3939 "public class FileWithoutTestCounterpart {}" );
4040
4141 // when
@@ -47,8 +47,8 @@ public void test_should_fail_silently_when_no_corresponding_file_is_found() {
4747
4848 public void test__using_CamelCase_naming_and_Test_suffix__should_jump_from_test_code_to_production_code () throws Exception {
4949 // given
50- VirtualFile srcFile = mainModule .addFile ("src /pack/Foo.java" , "package pack; public class Foo() {}" );
51- VirtualFile testFile = mainModule .addFile ("test /pack/FooTest.java" , "package pack; public class FooTest() {}" );
50+ VirtualFile srcFile = mainModule .addFile ("src1 /pack/Foo.java" , "package pack; public class Foo() {}" );
51+ VirtualFile testFile = mainModule .addFile ("test1 /pack/FooTest.java" , "package pack; public class FooTest() {}" );
5252
5353 // when
5454 GotoData gotoData = jumpFrom (testFile );
@@ -59,8 +59,8 @@ public void test__using_CamelCase_naming_and_Test_suffix__should_jump_from_test_
5959
6060 public void test__using_CamelCase_naming_and_Spec_suffix__should_jump_from_production_code_to_test_code () throws Exception {
6161 // given
62- VirtualFile srcFile = mainModule .addFile ("src /Something.rb" );
63- VirtualFile testFile = mainModule .addFile ("test /SomethingSpec.rb" );
62+ VirtualFile srcFile = mainModule .addFile ("src1 /Something.rb" );
63+ VirtualFile testFile = mainModule .addFile ("test1 /SomethingSpec.rb" );
6464
6565 // when
6666 GotoData gotoData = jumpFrom (srcFile );
@@ -71,8 +71,8 @@ public void test__using_CamelCase_naming_and_Spec_suffix__should_jump_from_produ
7171
7272 public void test__using_CamelCase_naming_and_Spec_suffix__should_jump_from_test_code_to_production_code () throws Exception {
7373 // given
74- VirtualFile srcFile = mainModule .addFile ("src /Something.rb" );
75- VirtualFile testFile = mainModule .addFile ("test /SomethingSpec.rb" );
74+ VirtualFile srcFile = mainModule .addFile ("src1 /Something.rb" );
75+ VirtualFile testFile = mainModule .addFile ("test1 /SomethingSpec.rb" );
7676
7777 // when
7878 GotoData gotoData = jumpFrom (testFile );
@@ -83,8 +83,8 @@ public void test__using_CamelCase_naming_and_Spec_suffix__should_jump_from_test_
8383
8484 public void test__using_CamelCase_naming_and_Test_prefix__should_jump_from_production_code_to_test_code () throws Exception {
8585 // given
86- VirtualFile srcFile = mainModule .addFile ("src /Something.cpp" );
87- VirtualFile testFile = mainModule .addFile ("test /TestSomething.cpp" );
86+ VirtualFile srcFile = mainModule .addFile ("src1 /Something.cpp" );
87+ VirtualFile testFile = mainModule .addFile ("test1 /TestSomething.cpp" );
8888
8989 // when
9090 GotoData gotoData = jumpFrom (srcFile );
@@ -95,8 +95,8 @@ public void test__using_CamelCase_naming_and_Test_prefix__should_jump_from_produ
9595
9696 public void test__using_CamelCase_naming_and_Test_prefix__should_jump_from_test_code_to_production_code () throws Exception {
9797 // given
98- VirtualFile srcFile = mainModule .addFile ("src /Something.cpp" );
99- VirtualFile testFile = mainModule .addFile ("test /TestSomething.cpp" );
98+ VirtualFile srcFile = mainModule .addFile ("src1 /Something.cpp" );
99+ VirtualFile testFile = mainModule .addFile ("test1 /TestSomething.cpp" );
100100
101101 // when
102102 GotoData gotoData = jumpFrom (testFile );
@@ -107,8 +107,8 @@ public void test__using_CamelCase_naming_and_Test_prefix__should_jump_from_test_
107107
108108 public void test_should_handle_lowerCamelCase () throws Exception {
109109 // given
110- VirtualFile srcFile = mainModule .addFile ("src /something.js" );
111- VirtualFile testFile = mainModule .addFile ("test /testSomething.js" );
110+ VirtualFile srcFile = mainModule .addFile ("src1 /something.js" );
111+ VirtualFile testFile = mainModule .addFile ("test1 /testSomething.js" );
112112
113113 // when
114114 GotoData gotoData = jumpFrom (srcFile );
@@ -125,8 +125,8 @@ public void test_should_handle_lowerCamelCase() throws Exception {
125125
126126 public void test__using_CamelCase_naming_and_Spec_prefix () throws Exception {
127127 // given
128- VirtualFile srcFile = mainModule .addFile ("src /powers/Baby.txt" );
129- VirtualFile testFile = mainModule .addFile ("test /powers/SpecBaby.txt" );
128+ VirtualFile srcFile = mainModule .addFile ("src1 /powers/Baby.txt" );
129+ VirtualFile testFile = mainModule .addFile ("test1 /powers/SpecBaby.txt" );
130130
131131 // when
132132 GotoData gotoData = jumpFrom (srcFile );
@@ -143,8 +143,8 @@ public void test__using_CamelCase_naming_and_Spec_prefix() throws Exception {
143143
144144 public void test__using_CamelCase_naming_and_Should_suffix () throws Exception {
145145 // given
146- VirtualFile srcFile = mainModule .addFile ("src /pack/AThing.java" );
147- VirtualFile testFile = mainModule .addFile ("test /pack/AThingShould.java" );
146+ VirtualFile srcFile = mainModule .addFile ("src1 /pack/AThing.java" );
147+ VirtualFile testFile = mainModule .addFile ("test1 /pack/AThingShould.java" );
148148
149149 // when
150150 GotoData gotoData = jumpFrom (srcFile );
@@ -161,8 +161,8 @@ public void test__using_CamelCase_naming_and_Should_suffix() throws Exception {
161161
162162 public void test__using_hyphen_separator_and_test_suffix () throws Exception {
163163 // given
164- VirtualFile srcFile = mainModule .addFile ("src /some/module.js" );
165- VirtualFile testFile = mainModule .addFile ("test /some/module-test.js" );
164+ VirtualFile srcFile = mainModule .addFile ("src1 /some/module.js" );
165+ VirtualFile testFile = mainModule .addFile ("test1 /some/module-test.js" );
166166
167167 // when
168168 GotoData gotoData = jumpFrom (srcFile );
@@ -179,8 +179,8 @@ public void test__using_hyphen_separator_and_test_suffix() throws Exception {
179179
180180 public void test__using_hyphen_separator_and_test_prefix () throws Exception {
181181 // given
182- VirtualFile srcFile = mainModule .addFile ("src /some/module.js" );
183- VirtualFile testFile = mainModule .addFile ("test /some/test-module.js" );
182+ VirtualFile srcFile = mainModule .addFile ("src1 /some/module.js" );
183+ VirtualFile testFile = mainModule .addFile ("test1 /some/test-module.js" );
184184
185185 // when
186186 GotoData gotoData = jumpFrom (srcFile );
@@ -197,8 +197,8 @@ public void test__using_hyphen_separator_and_test_prefix() throws Exception {
197197
198198 public void test__using_underscore_separator_and_spec_suffix () throws Exception {
199199 // given
200- VirtualFile srcFile = mainModule .addFile ("src /concept.js" );
201- VirtualFile testFile = mainModule .addFile ("test /concept_spec.js" );
200+ VirtualFile srcFile = mainModule .addFile ("src1 /concept.js" );
201+ VirtualFile testFile = mainModule .addFile ("test1 /concept_spec.js" );
202202
203203 // when
204204 GotoData gotoData = jumpFrom (srcFile );
@@ -215,8 +215,8 @@ public void test__using_underscore_separator_and_spec_suffix() throws Exception
215215
216216 public void test__using_space_separator () throws Exception {
217217 // given
218- VirtualFile srcFile = mainModule .addFile ("src /concept.js" );
219- VirtualFile testFile = mainModule .addFile ("test /spec concept.js" );
218+ VirtualFile srcFile = mainModule .addFile ("src1 /concept.js" );
219+ VirtualFile testFile = mainModule .addFile ("test1 /spec concept.js" );
220220
221221 // when
222222 GotoData gotoData = jumpFrom (srcFile );
@@ -233,8 +233,8 @@ public void test__using_space_separator() throws Exception {
233233
234234 public void test__using_separator__should_ignore_suffix_case () throws Exception {
235235 // given
236- VirtualFile srcFile = mainModule .addFile ("src /Concept.txt" );
237- VirtualFile testFile = mainModule .addFile ("test /Concept Spec.txt" );
236+ VirtualFile srcFile = mainModule .addFile ("src1 /Concept.txt" );
237+ VirtualFile testFile = mainModule .addFile ("test1 /Concept Spec.txt" );
238238
239239 // when
240240 GotoData gotoData = jumpFrom (srcFile );
@@ -251,8 +251,8 @@ public void test__using_separator__should_ignore_suffix_case() throws Exception
251251
252252 public void test__using_separator__should_ignore_prefix_case () throws Exception {
253253 // given
254- VirtualFile srcFile = mainModule .addFile ("src /Concept.txt" );
255- VirtualFile testFile = mainModule .addFile ("test /Spec_Concept.txt" );
254+ VirtualFile srcFile = mainModule .addFile ("src1 /Concept.txt" );
255+ VirtualFile testFile = mainModule .addFile ("test1 /Spec_Concept.txt" );
256256
257257 // when
258258 GotoData gotoData = jumpFrom (srcFile );
@@ -267,7 +267,7 @@ public void test__using_separator__should_ignore_prefix_case() throws Exception
267267 assertTargetFilesInOrder (gotoData , srcFile );
268268 }
269269
270- public void test_should_put_destination_files_having_same_extension_in_first_place_when_several_matches () throws Exception {
270+ public void test__regardless_of_source_folders__should_put_destination_files_having_same_extension_in_first_place_when_several_matches () throws Exception {
271271 // given (by default, without sorting files, this situation makes the test fail)
272272 VirtualFile srcFile = mainModule .addFile ("SomeConcept.js" );
273273 VirtualFile maybeTestFile1 = mainModule .addFile ("SomeConceptSpec.rb" );
0 commit comments