Skip to content

Commit

Permalink
Using undeprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 5, 2014
1 parent ca15a51 commit 18f35cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public void testCatCommandInvalidArgument() throws Exception
public void testCatCommand() throws Exception
{
Project project = projectFactory.createTempProject();
File target = new File(project.getRootDirectory().getFullyQualifiedName(), "test.java");
File target = new File(project.getRoot().getFullyQualifiedName(), "test.java");
target.createNewFile();

FileResource<?> source = project.getRootDirectory().getChild(target.getName()).reify(FileResource.class);
FileResource<?> source = project.getRoot().getChild(target.getName()).reify(FileResource.class);
source.setContents("public void test() {}");

shellTest.execute("cat " + source.getFullyQualifiedName(), 5, TimeUnit.SECONDS);
Expand All @@ -88,10 +88,10 @@ public void testCatCommand() throws Exception
public void testCatColoredCommand() throws Exception
{
Project project = projectFactory.createTempProject();
File target = new File(project.getRootDirectory().getFullyQualifiedName(), "test.java");
File target = new File(project.getRoot().getFullyQualifiedName(), "test.java");
target.createNewFile();

FileResource<?> source = project.getRootDirectory().getChild(target.getName()).reify(FileResource.class);
FileResource<?> source = project.getRoot().getChild(target.getName()).reify(FileResource.class);
source.setContents("public void test() {}");

shellTest.execute("cat " + source.getFullyQualifiedName() + " --color", 5, TimeUnit.SECONDS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static ForgeArchive getDeployment()
public void testCDProject() throws Exception
{
Project project = projectFactory.createTempProject();
String projectPath = project.getRootDirectory().getFullyQualifiedName();
String projectPath = project.getRoot().getFullyQualifiedName();
shellTest.execute("cd " + projectPath, 5, TimeUnit.SECONDS);
shellTest.clearScreen();
shellTest.execute("pwd", 5, TimeUnit.SECONDS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static ForgeArchive getDeployment()
public void testLsCommand() throws Exception
{
Project project = projectFactory.createTempProject();
String projectPath = project.getRootDirectory().getFullyQualifiedName();
String projectPath = project.getRoot().getFullyQualifiedName();
shellTest.execute("cd " + projectPath, 5, TimeUnit.SECONDS);
shellTest.execute("touch file.txt", 5, TimeUnit.SECONDS);
shellTest.clearScreen();
Expand Down

0 comments on commit 18f35cc

Please sign in to comment.