@@ -0,0 +1,2044 @@
+package com.github.stephanenicolas.injectview;%0A%0Aimport android.app.Activity;%0Aimport android.content.Context;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.widget.LinearLayout;%0Aimport android.widget.TextView;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.Robolectric;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * These tests are really complex to setup.%0A * Take your time for maintenance.%0A * @author SNI%0A */%0A@RunWith(InjectViewTestRunner.class)%0A@Config(manifest= Config.NONE)%0Apublic class InjectViewProcessorForViewsWithOtherTest %7B%0A  public static final String VIEW_TAG = %22TAG%22;%0A  public static final String VIEW_TAG2 = %22TAG2%22;%0A  public static final int VIEW_ID = 101;%0A  public static final int VIEW_ID2 = 102;%0A%0A  private InjectViewProcessor processor = new InjectViewProcessor();%0A%0A  @Test%0A  public void shouldInjectView_withId() %7B%0A    TestActivityWithId activity = Robolectric.buildActivity(TestActivityWithId.class)%0A        .create()%0A        .get();%0A    assertNotNull(activity.viewWithoutOnFinishInflate.text1);%0A    assertThat(activity.viewWithoutOnFinishInflate.text1.getId(), is(VIEW_ID));%0A  %7D%0A%0A%0A  public static class TestActivityWithId extends Activity %7B%0A    private TestViewWithIdWithoutOnFinishInflate viewWithoutOnFinishInflate;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A      super.onCreate(savedInstanceState);%0A      LinearLayout layout = new LinearLayout(this);%0A      final TextView text1 = new TextView(this);%0A      text1.setId(VIEW_ID);%0A      layout.addView(text1);%0A      viewWithoutOnFinishInflate = new TestViewWithIdWithoutOnFinishInflate(layout);%0A      setContentView(layout);%0A    %7D%0A%0A  %7D%0A%0A  public static class TestViewWithIdWithoutOnFinishInflate %7B%0A    @InjectView(VIEW_ID)%0A    protected TextView text1;%0A%0A    public TestViewWithIdWithoutOnFinishInflate(View view) %7B%0A      text1.setText(%22%22);%0A    %7D%0A  %7D%0A%0A%7D%0A

Add 1 test for other class with view injection