Examples of reset()


Examples of org.powermock.core.spi.MethodInvocationControl.reset()

     */
    public static synchronized void reset(Class<?>... classMocks) {
        for (Class<?> type : classMocks) {
            final MethodInvocationControl invocationHandler = MockRepository.getStaticMethodInvocationControl(type);
            if (invocationHandler != null) {
                invocationHandler.reset();
            }
            NewInvocationControl<?> newInvocationControl = MockRepository.getNewInstanceControl(type);
            if (newInvocationControl != null) {
                try {
                    newInvocationControl.reset();
View Full Code Here

Examples of org.protege.owlapi.inference.cls.ParentClassExtractor.reset()

        // Thing if the object is a root class
        if (rootFinder.getTerminalElements().contains(object)) {
            result.add(root);
        }
        // Not a root, so must have another parent
        parentClassExtractor.reset();
        parentClassExtractor.setCurrentClass(object);
        for (OWLOntology ont : ontologies) {
            for (OWLAxiom ax : ont.getAxioms(object)) {
                ax.accept(parentClassExtractor);
            }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.resize.RibbonBandResizeSequencingPolicy.reset()

      int availableBandHeight = c.getHeight();
      int availableWidth = c.getWidth();
      if (selectedTask.getBandCount() > 0) {
        RibbonBandResizeSequencingPolicy resizeSequencingPolicy = selectedTask
            .getResizeSequencingPolicy();
        resizeSequencingPolicy.reset();
        AbstractRibbonBand<?> currToTakeFrom = resizeSequencingPolicy
            .next();
        while (true) {
          // check whether all bands have the current resize
          // policy as their last (most restrictive) registered policy
View Full Code Here

Examples of org.rabinfingerprint.fingerprint.RabinFingerprintLong.reset()

      IOException {
    final RabinFingerprintLong rabin = new RabinFingerprintLong(p);
    for (String path : paths) {
      File file = new File(path);
      if (file.exists()) {
        rabin.reset();
        rabin.pushBytes(ByteStreams.toByteArray(new FileInputStream(file)));
        System.out.println(String.format("%X %s", rabin.getFingerprintLong(), file.getAbsolutePath()));
        System.out.flush();
      } else {
        System.err.print(String.format("Could not find file %s", path));
View Full Code Here

Examples of org.red5.codec.IVideoStreamCodec.reset()

         
          try {
            IVideoStreamCodec videoStreamCodec = new ScreenVideo();
            streamCodecInfo.setHasVideo(true);
            streamCodecInfo.setVideoCodec(videoStreamCodec);
            videoStreamCodec.reset();
            videoStreamCodec.addData(((VideoData) rtmpEvent).getData());
            livePipe.pushMessage(msg);

            // Notify listeners about received packet
            if (rtmpEvent instanceof IStreamPacket) {
View Full Code Here

Examples of org.red5.server.api.session.ISession.reset()

            // check if session life exceeds max lifetime
            if (now - creationTime > SessionManager.maxLifetime) {
              String key = session.getSessionId();
              log.info("Reaper killing stale session: {}", key);
              sessions.remove(key);
              session.reset();
              session = null;
            }
          }
        }
      }
View Full Code Here

Examples of org.restlet.ext.oauth.internal.AuthSession.reset()

        String state = session.getState();
        if (state != null && state.length() > 0) {
            location.append("&state=");
            location.append(state);
        }
        session.reset();
    }

    @Override
    protected void doInit() throws ResourceException {
        super.doInit();
View Full Code Here

Examples of org.rhq.core.util.StopWatch.reset()

            // Compress
            insStmt.setLong(1, begin);
            insStmt.setLong(2, begin);
            insStmt.setLong(3, end);

            watch.reset();
            rows = insStmt.executeUpdate();

        } finally {
            JDBCUtil.safeClose(conn, insStmt, null);
        }
View Full Code Here

Examples of org.rhq.coregui.client.components.configuration.ConfigurationEditor.reset()

                        }
                    });

                    resetButtonPC.addClickHandler(new ClickHandler() {
                        public void onClick(ClickEvent event) {
                            editorPC.reset();
                        }
                    });

                    saveButtonPC.addClickHandler(new ClickHandler() {
                        public void onClick(ClickEvent event) {
View Full Code Here

Examples of org.rhq.enterprise.communications.command.client.RemotePojoInvocationFuture.reset()

        assert "first test".equals(future.get(10, TimeUnit.SECONDS)); // make sure its still there
        long test_duration = System.currentTimeMillis() - stopwatch;
        assert test_duration < 750L : "get should have returned immediately: " + test_duration;

        assert future.isDone();
        future.reset();
        assert !future.isDone();

        stopwatch = System.currentTimeMillis();
        try {
            future.get(2, TimeUnit.SECONDS);
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.