Examples of echo()


Examples of org.jboss.ejb3.test.proxy.impl.jndiregistrar.BindingTest.echo()

      }
      TestCase.assertNotNull("Expected remote binding in JNDI at " + jndiBinding + " was not found", ejb);
      TestCase.assertTrue(ejb instanceof BindingTest);
      BindingTest test = (BindingTest) ejb;
      String passed = "Testing ALR";
      String returnValue = test.echo(passed);
      TestCase.assertEquals(passed, returnValue);

      // Unbind and test
      this.unbindAndTest(context, this.sessionContainer);
   }
View Full Code Here

Examples of org.jboss.embedded.test.remote.Test.echo()

      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY, org.jboss.naming.JBossRemotingContextFactory.class.getName());
      env.put(Context.PROVIDER_URL, "socket://172.16.83.75:3873");
      InitialContext ctx = new InitialContext(env);
      Test test = (Test)ctx.lookup("TestBean/remote");
      assertEquals(test.echo("hello world"), "hello world");
   }

}
View Full Code Here

Examples of org.jboss.forge.classloader.mock.MockService.echo()

         }
      });
      MockService adapter = ClassLoaderAdapterBuilder.callingLoader(loader).delegateLoader(loader)
               .enhance(delegate, MockService.class);
      Assert.assertNull(internal.echo(null));
      Assert.assertNull(adapter.echo(null));
   }
}
View Full Code Here

Examples of org.jboss.test.ejb3.jboss51xsd.Echo.echo()

      serverFound();
     
      // Now just do a simple test of the EJBs - lookup and invoke a method
      Echo bean = (Echo) this.getInitialContext().lookup("JBAS-7231-BeanJNDINameFromJBossXml");
      String msg = "JBAS-7231 is now fixed!!";
      String returnedMessage = bean.echo(msg);
     
      assertEquals("Bean returned unexpected value", msg, returnedMessage);
     
   }
}
View Full Code Here

Examples of org.jboss.test.jrmp.interfaces.StatelessSession.echo()

      StatelessSessionHome home = (StatelessSessionHome)obj;
      log.debug("Found StatelessSessionWithGZip Home");
      StatelessSession bean = home.create();
      log.debug("Created StatelessSessionWithGZip");
      // Test that the Entity bean sees username as its principal
      String echo = bean.echo("jrmp-comp");
      log.debug("bean.echo(jrmp-comp) = " + echo);
      bean.remove();
   }

   /**
 
View Full Code Here

Examples of org.jboss.test.managed.bean.Echo.echo()

   public void testManagedBeanInvocation() throws Exception
   {
      // get hold of the bean which internally invokes on the managed bean
      Echo bean = (Echo) this.getInitialContext().lookup(DelegateSLSB.JNDI_NAME);
      String message = "No new message!";
      String echoedMessage = bean.echo(message);
      Assert.assertEquals("Unexpected message returned", message, echoedMessage);
   }
}
View Full Code Here

Examples of org.jboss.test.profileservice.test.ejb3.TestRemoteBusiness.echo()

      log.info("Method stats before invocation: " + methodStats);
      Assert.assertTrue("Method stats should be empty", methodStats.isEmpty());

      // Invoke upon the EJB
      TestRemoteBusiness remoteBusiness = (TestRemoteBusiness) getInitialContext().lookup(ejbName + "/remote");
      remoteBusiness.echo("Some test String");

      // Ensure the stats reflect the invocation
      invocationStats = getInvocationStats(component);
      methodStats = invocationStats.methodStats;
      log.info("Method stats after invocation: " + methodStats);
View Full Code Here

Examples of org.jboss.test.security.interfaces.Entity.echo()

        try
        {
            InitialContext ctx = new InitialContext();
            EntityHome home = (EntityHome) ctx.lookup("java:comp/env/ejb/Entity");
            Entity bean = home.findByPrimaryKey(arg);
            echo = bean.echo(arg);
        }
        catch(Exception e)
        {
            log.debug("Entity.echo failed", e);
            e.fillInStackTrace();
View Full Code Here

Examples of org.jboss.test.security.interfaces.StatefulSession.echo()

      StatefulSessionHome home = (StatefulSessionHome) obj;
      log.debug("Found StatefulSessionHome");
      // The create should be allowed to call getCallerPrincipal
      StatefulSession bean = home.create("testStatefulCreateCaller");
      // Need to invoke a method to ensure an ejbCreate call
      bean.echo("testStatefulCreateCaller");
      log.debug("Bean.echo(), ok");

      logout();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.StatelessSession.echo()

      client.setSimple(username, password);
      client.login();
      try
      {
         bean = home.create();
         bean.echo("hi");
      }
      catch(Exception e)
      {
         fail(e.getLocalizedMessage());
      }
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.