Examples of reset()


Examples of org.jboss.internal.soa.esb.couriers.MockCourier.reset()

        assertNotSame("messages", message, mockCourier.message) ;
        assertNull("message context", message.getContext().getContext(SecurityService.CONTEXT)) ;
        assertNotNull("delivered message context", mockCourier.message.getContext().getContext(SecurityService.CONTEXT)) ;
        assertNotNull("securityContext", SecurityContext.getSecurityContext()) ;
       
        mockCourier.reset();
        si.deliverAsync(message) ;
       
        assertNotSame("messages", message, mockCourier.message) ;
        assertNull("message context", message.getContext().getContext(SecurityService.CONTEXT)) ;
        assertNotNull("delivered message context", mockCourier.message.getContext().getContext(SecurityService.CONTEXT)) ;
View Full Code Here

Examples of org.jboss.jms.delegate.BrowserEndpoint.reset()

      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with ID " + objectId);
      }

      endpoint.reset();
      return null;
   }

   public void read(DataInputStream is) throws Exception
   {
View Full Code Here

Examples of org.jboss.jms.message.JBossBytesMessage.reset()

      {
         jbossBytesMessage.writeByte((byte)i);
      }

     
      jbossBytesMessage.reset();
      JBossBytesMessage copy = new JBossBytesMessage(jbossBytesMessage);

      copy.reset();

      ensureEquivalent(jbossBytesMessage, copy);
View Full Code Here

Examples of org.jboss.jms.server.endpoint.BrowserEndpoint.reset()

      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with ID " + objectId);
      }

      endpoint.reset();
      return null;
   }

   public void read(DataInputStream is) throws Exception
   {
View Full Code Here

Examples of org.jboss.messaging.core.impl.DeliveringCounter.reset()

      assertEquals(0, counter.get());
      for (int i = 0; i < 49; i++) {
         counter.decrement(mids[i]);
      }
      assertEquals(0, counter.get());
      counter.reset();
      assertEquals(0, counter.get());
   }

   public void testDeliveringCounterDefault() throws Exception
   {
View Full Code Here

Examples of org.jboss.modcluster.ModClusterServiceMBean.reset()

            context.addStep(new OperationStepHandler() {
                @Override
                public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
                    ServiceController<?> controller = context.getServiceRegistry(false).getService(ContainerEventHandlerService.SERVICE_NAME);
                    ModClusterServiceMBean service = (ModClusterServiceMBean) controller.getValue();
                    service.reset();
                    context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
                }
            }, OperationContext.Stage.RUNTIME);
        }
View Full Code Here

Examples of org.jboss.netty.buffer.ChannelBufferInputStream.reset()

            ChannelBufferInputStream in = new ChannelBufferInputStream(buffer);
            JsonObject obj = jsonSupport.readValue(in, JsonObject.class);
            if (obj != null) {
                packet.setData(obj.getObject());
            } else {
                in.reset();
                Object object = jsonSupport.readValue(in, Object.class);
                packet.setData(object);
            }
            break;
        }
View Full Code Here

Examples of org.jboss.portal.common.text.CharBuffer.reset()

                  {
                     log.debug("Could not decode parameter name " + tmp, e);
                  }

                  //
                  buffer.reset();
                  state = LOOKUP;
               }
               else if (c == '=')
               {
                  encodedName = buffer.asString();
View Full Code Here

Examples of org.jboss.portletbridge.application.PortletWindowState.reset()

        // Save view state for a render phases.
        facesContext.getApplication().getStateManager().saveView(
            facesContext);
        windowState.saveRequest(facesContext);
      } else {
        windowState.reset();
        windowState.saveSeamConversationId(facesContext);
        String redirectViewId = bridgeContext.getRedirectViewId();
        if (null != redirectViewId) {
          windowState.setViewId(redirectViewId);
          // Save redirect request parameters.
View Full Code Here

Examples of org.jboss.resteasy.cdi.ejb.EJBRemoteResource.reset()

     
      // Verify that EJBBookReader and EJBBookWriter haven't been used.
      remoteResource.testUse(0);
     
      // Reset counter.
      remoteResource.reset();
   }
  
   private static EJBRemoteResource getRemoteResource() throws Exception
   {
      final Hashtable<String,String> jndiProperties = new Hashtable<String,String>();
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.