public static ProteusContext context() { Proteus proteus = new ProteusBuilder().build(); Context context = mock(Context.class); return proteus.createContextBuilder(context).build(); }
public ProteusManager(Retrofit retrofit) { this.api = retrofit.create(ProteusApi.class); proteus = new ProteusBuilder() .register(SupportV4Module.create()) .register(RecyclerViewModule.create()) .register(CardViewModule.create()) .register(DesignModule.create()) .register(new CircleViewParser()) .build(); ProteusTypeAdapterFactory.PROTEUS_INSTANCE_HOLDER.setProteus(proteus); }
@Before public void before() { ProteusTypeAdapterFactory factory = new ProteusTypeAdapterFactory(context); proteus = new ProteusBuilder().build(); ProteusTypeAdapterFactory.PROTEUS_INSTANCE_HOLDER.setProteus(proteus); adapter = factory.COMPILED_VALUE_TYPE_ADAPTER; }