Skip to content

Commit

Permalink
FIX - Ashok - Fixed merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashok committed Dec 5, 2012
1 parent f03759b commit bd90699
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.rapidftr.activity;


import com.rapidftr.RapidFtrApplication;
import com.rapidftr.model.Child;
import com.rapidftr.repository.ChildRepository;
import org.json.JSONException;

import static com.rapidftr.RapidFtrApplication.getApplicationInstance;

public class SearchChildrenActivity extends BaseActivityIntegrationTest{

@Override
Expand All @@ -24,7 +25,7 @@ public void tearDown() throws Exception{
}

public void testSearchChildAndViewDetail() throws JSONException {
ChildRepository repository = RapidFtrApplication.getInstance().getInjector().getInstance(ChildRepository.class);
ChildRepository repository = getApplicationInstance().getInjector().getInstance(ChildRepository.class);
Child child=new Child(getAlphaNumeric(5), "rapidftr","{\"name\":\"SearchTest\"}");
repository.createOrUpdate(child);
searchPage.navigateToSearchPage();
Expand All @@ -43,7 +44,7 @@ public void testErrorMessageOnNoSearchResultFound(){
}

public void testUserCanEditChildCreatedByOtherUserViaSearch() throws JSONException{
ChildRepository repository = RapidFtrApplication.getInstance().getInjector().getInstance(ChildRepository.class);
ChildRepository repository = getApplicationInstance().getInjector().getInstance(ChildRepository.class);
Child child =new Child(getAlphaNumeric(5), "admin","{\"name\":\"SearchEditTest\"}");
repository.createOrUpdate(child);
searchPage.navigateToSearchPage();
Expand Down

0 comments on commit bd90699

Please sign in to comment.