File tree Expand file tree Collapse file tree
test/java/org/baeldung/java/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <projectDescription >
3+ <name >core-java8</name >
4+ <comment ></comment >
5+ <projects >
6+ </projects >
7+ <buildSpec >
8+ <buildCommand >
9+ <name >org.eclipse.m2e.core.maven2Builder</name >
10+ <arguments >
11+ </arguments >
12+ </buildCommand >
13+ </buildSpec >
14+ <natures >
15+ <nature >org.eclipse.m2e.core.maven2Nature</nature >
16+ </natures >
17+ </projectDescription >
Original file line number Diff line number Diff line change 11package org .baeldung .java .io ;
22
3+ import static org .apache .commons .lang3 .RandomStringUtils .randomAlphabetic ;
34import static org .junit .Assert .assertTrue ;
45
56import java .io .File ;
@@ -57,9 +58,8 @@ public final void givenUsingJDK6_whenMovingFile_thenCorrect() throws IOException
5758
5859 @ Test
5960 public final void givenUsingJDK7Nio2_whenMovingFile_thenCorrect () throws IOException {
60- final Path fileToMovePath = Files .createFile (Paths .get ("src/test/resources/fileToMove.txt" ));
61- final Path dirPath = Paths .get ("src/test/resources/" );
62- final Path targetPath = Files .createDirectory (dirPath );
61+ final Path fileToMovePath = Files .createFile (Paths .get ("src/test/resources/" + randomAlphabetic (5 ) + ".txt" ));
62+ final Path targetPath = Paths .get ("src/main/resources/" );
6363
6464 Files .move (fileToMovePath , targetPath .resolve (fileToMovePath .getFileName ()));
6565 }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <projectDescription >
3+ <name >guava18</name >
4+ <comment ></comment >
5+ <projects >
6+ </projects >
7+ <buildSpec >
8+ <buildCommand >
9+ <name >org.eclipse.m2e.core.maven2Builder</name >
10+ <arguments >
11+ </arguments >
12+ </buildCommand >
13+ </buildSpec >
14+ <natures >
15+ <nature >org.eclipse.m2e.core.maven2Nature</nature >
16+ </natures >
17+ </projectDescription >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <projectDescription >
3+ <name >guava19</name >
4+ <comment ></comment >
5+ <projects >
6+ </projects >
7+ <buildSpec >
8+ <buildCommand >
9+ <name >org.eclipse.m2e.core.maven2Builder</name >
10+ <arguments >
11+ </arguments >
12+ </buildCommand >
13+ </buildSpec >
14+ <natures >
15+ <nature >org.eclipse.m2e.core.maven2Nature</nature >
16+ </natures >
17+ </projectDescription >
Original file line number Diff line number Diff line change 1717 <attribute name =" maven.pomderived" value =" true" />
1818 </attributes >
1919 </classpathentry >
20- <classpathentry excluding =" **" kind =" src" output =" target/test-classes" path =" src/test/resources" >
21- <attributes >
22- <attribute name =" maven.pomderived" value =" true" />
23- </attributes >
24- </classpathentry >
25- <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7" >
20+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5" >
2621 <attributes >
2722 <attribute name =" maven.pomderived" value =" true" />
2823 </attributes >
Original file line number Diff line number Diff line change 1010 <arguments >
1111 </arguments >
1212 </buildCommand >
13+ <buildCommand >
14+ <name >org.springframework.ide.eclipse.core.springbuilder</name >
15+ <arguments >
16+ </arguments >
17+ </buildCommand >
1318 <buildCommand >
1419 <name >org.eclipse.m2e.core.maven2Builder</name >
1520 <arguments >
1621 </arguments >
1722 </buildCommand >
1823 </buildSpec >
1924 <natures >
25+ <nature >org.springframework.ide.eclipse.core.springnature</nature >
2026 <nature >org.eclipse.jdt.core.javanature</nature >
2127 <nature >org.eclipse.m2e.core.maven2Nature</nature >
2228 </natures >
Original file line number Diff line number Diff line change 1111 <parent >
1212 <groupId >org.springframework.boot</groupId >
1313 <artifactId >spring-boot-starter-parent</artifactId >
14- <version >1.2.6 .RELEASE</version >
14+ <version >1.3.3 .RELEASE</version >
1515 </parent >
1616
1717 <dependencies >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <classpath >
3+ <classpathentry kind =" src" output =" target/classes" path =" src/main/java" >
4+ <attributes >
5+ <attribute name =" optional" value =" true" />
6+ <attribute name =" maven.pomderived" value =" true" />
7+ </attributes >
8+ </classpathentry >
9+ <classpathentry excluding =" **" kind =" src" output =" target/classes" path =" src/main/resources" >
10+ <attributes >
11+ <attribute name =" maven.pomderived" value =" true" />
12+ </attributes >
13+ </classpathentry >
14+ <classpathentry kind =" src" output =" target/test-classes" path =" src/test/java" >
15+ <attributes >
16+ <attribute name =" optional" value =" true" />
17+ <attribute name =" maven.pomderived" value =" true" />
18+ </attributes >
19+ </classpathentry >
20+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5" >
21+ <attributes >
22+ <attribute name =" maven.pomderived" value =" true" />
23+ </attributes >
24+ </classpathentry >
25+ <classpathentry kind =" con" path =" org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER" >
26+ <attributes >
27+ <attribute name =" maven.pomderived" value =" true" />
28+ </attributes >
29+ </classpathentry >
30+ <classpathentry kind =" output" path =" target/classes" />
31+ </classpath >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <projectDescription >
3+ <name >spring-data-redis</name >
4+ <comment ></comment >
5+ <projects >
6+ </projects >
7+ <buildSpec >
8+ <buildCommand >
9+ <name >org.eclipse.jdt.core.javabuilder</name >
10+ <arguments >
11+ </arguments >
12+ </buildCommand >
13+ <buildCommand >
14+ <name >org.eclipse.m2e.core.maven2Builder</name >
15+ <arguments >
16+ </arguments >
17+ </buildCommand >
18+ <buildCommand >
19+ <name >org.springframework.ide.eclipse.core.springbuilder</name >
20+ <arguments >
21+ </arguments >
22+ </buildCommand >
23+ </buildSpec >
24+ <natures >
25+ <nature >org.springframework.ide.eclipse.core.springnature</nature >
26+ <nature >org.eclipse.jdt.core.javanature</nature >
27+ <nature >org.eclipse.m2e.core.maven2Nature</nature >
28+ </natures >
29+ </projectDescription >
You can’t perform that action at this time.
0 commit comments