Skip to content

Commit

Permalink
Avoiding deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 6, 2014
1 parent 0c607cd commit 25ab0b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void testConfigListInProject() throws Exception
Project project = projectFactory.createTempProject();
Configuration projectConfig = project.getFacet(ConfigurationFacet.class).getConfiguration();
addPropsToProjectConfig(projectConfig);
test.getShell().setCurrentResource(project.getRootDirectory());
test.getShell().setCurrentResource(project.getRoot());
test.execute("config-list", 5, TimeUnit.SECONDS);
Assert.assertThat(test.getStdOut(), containsString("key2=project: [projectValue2]"));
Assert.assertThat(test.getStdOut(), containsString("key3=project: [projectValue3]"));
Expand All @@ -95,7 +95,7 @@ public void testMergedConfigList() throws Exception
Project project = projectFactory.createTempProject();
Configuration projectConfig = project.getFacet(ConfigurationFacet.class).getConfiguration();
addPropsToProjectConfig(projectConfig);
test.getShell().setCurrentResource(project.getRootDirectory());
test.getShell().setCurrentResource(project.getRoot());
test.execute("config-list", 5, TimeUnit.SECONDS);
Assert.assertThat(test.getStdOut(), containsString("key1=user: [userValue1]"));
Assert.assertThat(test.getStdOut(), containsString("key2=user: [userValue2], project: [projectValue2]"));
Expand Down

0 comments on commit 25ab0b2

Please sign in to comment.