Fix typo.

This commit is contained in:
Noorul Islam K M 2013-09-09 09:52:36 +05:30 committed by Ignasi Barrera
parent 745b15bb6e
commit 023ca1c696
3 changed files with 11 additions and 11 deletions

View File

@ -33,20 +33,20 @@ import com.google.common.collect.ImmutableSet;
@Test(groups = "live", testName = "CleanupStaleNodesAndClientsImplLiveTest") @Test(groups = "live", testName = "CleanupStaleNodesAndClientsImplLiveTest")
public class CleanupStaleNodesAndClientsImplLiveTest extends BaseChefLiveTest<ChefApi> { public class CleanupStaleNodesAndClientsImplLiveTest extends BaseChefLiveTest<ChefApi> {
private CreateNodeAndPopulateAutomaticAttributesImpl creater; private CreateNodeAndPopulateAutomaticAttributesImpl creator;
private CleanupStaleNodesAndClientsImpl strategy; private CleanupStaleNodesAndClientsImpl strategy;
@Override @Override
protected void initialize() { protected void initialize() {
super.initialize(); super.initialize();
this.creater = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class); this.creator = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
this.strategy = injector.getInstance(CleanupStaleNodesAndClientsImpl.class); this.strategy = injector.getInstance(CleanupStaleNodesAndClientsImpl.class);
} }
@Test @Test
public void testExecute() throws InterruptedException { public void testExecute() throws InterruptedException {
try { try {
creater.execute(prefix, ImmutableSet.<String> of()); creator.execute(prefix, ImmutableSet.<String> of());
// http://tickets.corp.opscode.com/browse/PL-522 // http://tickets.corp.opscode.com/browse/PL-522
// assert chef.nodeExists(prefix); // assert chef.nodeExists(prefix);
assertNotNull(api.getNode(prefix)); assertNotNull(api.getNode(prefix));

View File

@ -34,20 +34,20 @@ import com.google.common.collect.ImmutableSet;
public class DeleteAllApisAndNodesInListImplLiveTest extends BaseChefLiveTest<ChefApi> { public class DeleteAllApisAndNodesInListImplLiveTest extends BaseChefLiveTest<ChefApi> {
private DeleteAllNodesInListImpl strategy; private DeleteAllNodesInListImpl strategy;
private CreateNodeAndPopulateAutomaticAttributesImpl creater; private CreateNodeAndPopulateAutomaticAttributesImpl creator;
@Override @Override
protected void initialize() { protected void initialize() {
super.initialize(); super.initialize();
this.creater = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class); this.creator = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
this.strategy = injector.getInstance(DeleteAllNodesInListImpl.class); this.strategy = injector.getInstance(DeleteAllNodesInListImpl.class);
} }
@Test @Test
public void testExecute() throws InterruptedException { public void testExecute() throws InterruptedException {
try { try {
creater.execute(prefix, ImmutableSet.<String> of()); creator.execute(prefix, ImmutableSet.<String> of());
creater.execute(prefix + 1, ImmutableSet.<String> of()); creator.execute(prefix + 1, ImmutableSet.<String> of());
// http://tickets.corp.opscode.com/browse/PL-522 // http://tickets.corp.opscode.com/browse/PL-522
// assert api.nodeExists(prefix); // assert api.nodeExists(prefix);

View File

@ -36,15 +36,15 @@ import com.google.common.collect.ImmutableSet;
public class GetNodesImplLiveTest extends BaseChefLiveTest<ChefApi> { public class GetNodesImplLiveTest extends BaseChefLiveTest<ChefApi> {
private ListNodesImpl strategy; private ListNodesImpl strategy;
private CreateNodeAndPopulateAutomaticAttributesImpl creater; private CreateNodeAndPopulateAutomaticAttributesImpl creator;
@Override @Override
protected void initialize() { protected void initialize() {
super.initialize(); super.initialize();
this.creater = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class); this.creator = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
this.strategy = injector.getInstance(ListNodesImpl.class); this.strategy = injector.getInstance(ListNodesImpl.class);
creater.execute(prefix, ImmutableSet.<String> of()); creator.execute(prefix, ImmutableSet.<String> of());
creater.execute(prefix + 1, ImmutableSet.<String> of()); creator.execute(prefix + 1, ImmutableSet.<String> of());
} }
@AfterClass(groups = { "integration", "live" }) @AfterClass(groups = { "integration", "live" })