Examples of reset()


Examples of org.mifosplatform.infrastructure.core.data.DataValidatorBuilder.reset()

                .resource(SAVINGS_ACCOUNT_RESOURCE_NAME);
        boolean isOneWithdrawalPresent = false;
        boolean isOneAnnualPresent = false;
        for (SavingsAccountCharge charge : charges) {
            if (!charge.hasCurrencyCodeOf(productCurrencyCode)) {
                baseDataValidator.reset().parameter("currency").value(charge.getCharge().getId())
                        .failWithCodeNoParameterAddedToErrorCode("currency.and.charge.currency.not.same");
            }

            if (charge.isWithdrawalFee()) {
                if (isOneWithdrawalPresent) {
View Full Code Here

Examples of org.mockito.StateMaster.reset()

        StateMaster state = new StateMaster();
        //catch any invalid state left over after test case run
        //this way we can catch early if some Mockito operations leave weird state afterwards
        state.validate();
        //reset the state, especially, reset any ongoing stubbing for correct error messages of tests that assert unhappy paths
        state.reset();
    }

    @Before
    public void init() {
        MockitoAnnotations.initMocks(this);
View Full Code Here

Examples of org.mockserver.client.proxy.ProxyClient.reset()

                                .setPort(getServerPort())
                                .setPath("/test_headers_only")
                                .build()
                )
        );
        proxyClient.reset();

        // then
        proxyClient
                .verify(
                        request()
View Full Code Here

Examples of org.modeshape.common.statistic.Stopwatch.reset()

        // Now try getting a node at one level down ...
        String name = "childNode";
        int index = numberOfChildrenPerNode / 2;
        String path = useSns ? (name + "[" + index + "]") : (name + index);
        sw.reset();
        sw.start();
        Node randomNode = node.getNode(path);
        sw.stop();
        assertThat(randomNode, is(notNullValue()));
        if (print) {
View Full Code Here

Examples of org.molgenis.framework.tupletable.TupleTable.reset()

    table.setColLimit(2);

    assertEquals(table.getColumns().size(), 2);

    table.reset();

    assertEquals(table.getColumns().size(), 3);

    table.setColOffset(1);
View Full Code Here

Examples of org.moltools.apps.probemaker.design.CandidateAnalysisModule.reset()

    for (Iterator<CandidateAnalysisModule> i = project.getSettings().getArmModules().iterator(); i.hasNext(); ) {
      CandidateAnalysisModule m = i.next();
      if (m instanceof ProbeAnalysisModule)
      ((ProbeAnalysisModule) m).reset(pd,probes);
      else
      m.reset();
    }

    for (Iterator<CandidateAnalysisModule> i = project.getSettings().getCandidateModulesStage1().iterator(); i.hasNext(); ) {
      CandidateAnalysisModule m = i.next();
      if (m instanceof ProbeAnalysisModule)
View Full Code Here

Examples of org.mortbay.io.ByteArrayEndPoint.reset()

                    {
                        String t="v="+v+",r="+r+",chunks="+chunks+",c="+c+",tr="+tr[r];
                        // System.err.println(t);
                       
                        hb.reset(true);
                        endp.reset();
                        fields.clear();

                        // System.out.println("TEST: "+t);
                       
                        try
View Full Code Here

Examples of org.mortbay.io.nio.IndirectNIOBuffer.reset()

           
            if (len!=len2)
                throw new IllegalStateException();
            temp.mark();
            buffer.put(temp);
            temp.reset();
            System.err.print(temp);
            buffer.skip(len);
            return len;
        }
View Full Code Here

Examples of org.mortbay.io.nio.NIOBuffer.reset()

           
            if (len!=len2)
                throw new IllegalStateException();
            temp.mark();
            buffer.put(temp);
            temp.reset();
            System.err.print(temp);
            buffer.skip(len);
            return len;
        }
View Full Code Here

Examples of org.mortbay.util.Utf8StringBuffer.reset()

                    if (l>_copy.length)
                        l=_copy.length; 
                    buf.getChars(0,l,_copy,0);
                    _writer.write(_copy,0,l);
                    _writer.flush();
                    u8buf.reset();
                    _buffers.add(u8buf);
                }
            }
            else
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.