Skip to content

Instantly share code, notes, and snippets.

View go-cristian's full-sized avatar
💭
Never stop learning!

Cristian Gómez go-cristian

💭
Never stop learning!
View GitHub Profile
@RunWith(AndroidJUnit4.class) @LargeTest public class RatesActivityShould {
@Rule public ActivityTestRule<RatesActivity> rule =
new ActivityTestRule<RatesActivity>(RatesActivity.class);
@Test public void show_rates_widget_on_load() throws Exception {
RatesActivity activity = rule.getActivity();
activity.setContentView(new AwesomeTextView(activity));
onView(isAssignableFrom(AwesomeTextView.class)).perform(typeText("ModerFoka"))
/**
* Copyright (C) 2015 Cristian Gomez Open Source Project <p/> Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
* may obtain a copy of the License at <p/> http://www.apache.org/licenses/LICENSE-2.0 <p/> Unless
* required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Copyright (C) 2015 Cristian Gomez Open Source Project <p/> Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
* may obtain a copy of the License at <p/> http://www.apache.org/licenses/LICENSE-2.0 <p/> Unless
* required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Copyright (C) 2015 Cristian Gomez Open Source Project <p/> Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
* may obtain a copy of the License at <p/> http://www.apache.org/licenses/LICENSE-2.0 <p/> Unless
* required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Copyright (C) 2015 Cristian Gomez Open Source Project <p/> Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
* may obtain a copy of the License at <p/> http://www.apache.org/licenses/LICENSE-2.0 <p/> Unless
* required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Copyright (C) 2015 Cristian Gomez Open Source Project <p/> Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
* may obtain a copy of the License at <p/> http://www.apache.org/licenses/LICENSE-2.0 <p/> Unless
* required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Defaul base interactor. This class describes in the practical Clean Architecture how a use case
* it can be perfomed. For practical pruposes a use case has two phases the moment when is executed
* an the moment when needs to return a response, it depends on a default {@link InteractorExecutor}
* wich handles the basic flow. At the end of the process the {@link InteractorResponse} sends the
* response to the class that generates the call. For practical purposes an inner class model is
* needed and must be implemented for every {@link Interactor}.
*/
public abstract class Interactor<E, J> {