Codota Logo
TestOverdueHelper.checkStateApplied
Code IndexAdd Codota to your IDE (free)

How to use
checkStateApplied
method
in
com.ning.billing.overdue.TestOverdueHelper

Best Java code snippets using com.ning.billing.overdue.TestOverdueHelper.checkStateApplied (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: com.ning.billing/killbill-overdue

public void checkStateApplied(final OverdueState state) {
  final BlockingState result = ((ApplicatorBlockingApi) blockingInternalApi).getBlockingState();
  checkStateApplied(result, state);
}
origin: com.ning.billing/killbill-overdue

@Test(groups = "slow")
public void testApplicator() throws Exception {
  final InputStream is = new ByteArrayInputStream(testOverdueHelper.getConfigXml().getBytes());
  final OverdueConfig config = XMLLoader.getObjectFromStreamNoValidation(is, OverdueConfig.class);
  overdueWrapperFactory.setOverdueConfig(config);
  final Account account = Mockito.mock(Account.class);
  Mockito.when(account.getId()).thenReturn(UUID.randomUUID());
  final OverdueStateSet overdueStateSet = config.getStateSet();
  final OverdueState clearState = config.getStateSet().findState(DefaultBlockingState.CLEAR_STATE_NAME);
  OverdueState state;
  state = config.getStateSet().findState("OD1");
  applicator.apply(overdueStateSet, null, account, clearState, state, internalCallContext);
  testOverdueHelper.checkStateApplied(state);
  checkBussEvent("OD1");
  state = config.getStateSet().findState("OD2");
  applicator.apply(overdueStateSet, null, account, clearState, state, internalCallContext);
  testOverdueHelper.checkStateApplied(state);
  checkBussEvent("OD2");
  state = config.getStateSet().findState("OD3");
  applicator.apply(overdueStateSet, null, account, clearState, state, internalCallContext);
  testOverdueHelper.checkStateApplied(state);
  checkBussEvent("OD3");
}
origin: com.ning.billing/killbill-overdue

@Test(groups = "slow")
public void testWrapperBasic() throws Exception {
  final InputStream is = new ByteArrayInputStream(testOverdueHelper.getConfigXml().getBytes());
  final OverdueConfig config = XMLLoader.getObjectFromStreamNoValidation(is, OverdueConfig.class);
  overdueWrapperFactory.setOverdueConfig(config);
  Account account;
  OverdueWrapper wrapper;
  OverdueState state;
  state = config.getStateSet().findState("OD1");
  account = testOverdueHelper.createAccount(clock.getUTCToday().minusDays(31));
  wrapper = overdueWrapperFactory.createOverdueWrapperFor(account);
  wrapper.refresh(internalCallContext);
  testOverdueHelper.checkStateApplied(state);
  state = config.getStateSet().findState("OD2");
  account = testOverdueHelper.createAccount(clock.getUTCToday().minusDays(41));
  wrapper = overdueWrapperFactory.createOverdueWrapperFor(account);
  wrapper.refresh(internalCallContext);
  testOverdueHelper.checkStateApplied(state);
  state = config.getStateSet().findState("OD3");
  account = testOverdueHelper.createAccount(clock.getUTCToday().minusDays(51));
  wrapper = overdueWrapperFactory.createOverdueWrapperFor(account);
  wrapper.refresh(internalCallContext);
  testOverdueHelper.checkStateApplied(state);
}
com.ning.billing.overdueTestOverdueHelpercheckStateApplied

Popular methods of TestOverdueHelper

  • createAccount
  • getConfigXml

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now