@Test @Config(qualifiers="pt-port") public void shouldGetRightCodeForPTReason() throws Exception { ArrayList<String> totalList = newArrayList(); totalList.addAll(reasonDescListPT); for (String reason : totalList){ String code = reasonManager.queryByDesc(reason).getCode(); assertThat(StringUtils.isEmpty(code), is(false)); } }
public MovementReason queryByDesc(final String reason) throws MovementReasonNotFoundException{ return queryByDesc(reason, context.getResources().getConfiguration().locale); }
MovementReasonManager { public MovementReason queryByDesc(final String reason) throws MovementReasonNotFoundException{ return queryByDesc(reason, context.getResources().getConfiguration().locale); } }
MovementReasonManager { public MovementReason queryByDesc(final String reason) throws MovementReasonNotFoundException{ return queryByDesc(reason, context.getResources().getConfiguration().locale); } @Inject private  MovementReasonManager(Context context); }
MovementReasonManager { public MovementReason queryByDesc(final String reason) throws MovementReasonNotFoundException{ return queryByDesc(reason, context.getResources().getConfiguration().locale); } @Inject private  MovementReasonManager(Context context); static MovementReasonManager getInstance(); void refresh(); List<MovementReason> buildReasonListForMovementType(final MovementType type); MovementReason queryByDesc(final String reason); MovementReason queryByDesc(final String desc, Locale locale); MovementReason queryByCode(final String code); Resources getResourceByLocal(Locale locale); List<MovementType> getMovementTypes(); }
MovementReasonManager { public MovementReason queryByDesc(final String reason) throws MovementReasonNotFoundException{ return queryByDesc(reason, context.getResources().getConfiguration().locale); } @Inject private  MovementReasonManager(Context context); static MovementReasonManager getInstance(); void refresh(); List<MovementReason> buildReasonListForMovementType(final MovementType type); MovementReason queryByDesc(final String reason); MovementReason queryByDesc(final String desc, Locale locale); MovementReason queryByCode(final String code); Resources getResourceByLocal(Locale locale); List<MovementType> getMovementTypes(); static final String INVENTORY_POSITIVE; static final String INVENTORY_NEGATIVE; static final String INVENTORY; static final String DEFAULT_ISSUE; static final String DEFAULT_RECEIVE; static final String DEFAULT_NEGATIVE_ADJUSTMENT; static final String DEFAULT_POSITIVE_ADJUSTMENT; static final String UNPACK_KIT; static final String DONATION; static final String DDM; static final String RETURN_TO_DDM; static final String RES_DIVIDER; }