Examples of Dummy


Examples of org.apache.camel.component.hazelcast.testutil.Dummy

    @Test
    public void testQuery() {
        String sql = "bar > 1000";

        when(map.values(any(SqlPredicate.class))).thenReturn(Arrays.<Object>asList(new Dummy("beta", 2000), new Dummy("gamma", 3000)));
        template.sendBodyAndHeader("direct:query", null, HazelcastConstants.QUERY, sql);
        verify(map).values(any(SqlPredicate.class));

        Collection<?> b1 = consumer.receiveBody("seda:out", 5000, Collection.class);
View Full Code Here

Examples of org.jamesii.core.remote.dummyobjects.Dummy

      return;
    }
    System.out.println("Registry initiliazed");
    // Registering an object here.
    HostCentralIDFactory idFac = new HostCentralIDFactory();
    d = new Dummy();
    id = idFac.create(new ParameterBlock(d, HostCentralIDFactory.PARAM_OBJECT), SimSystem.getRegistry().createContext());
    try {
      rcc.registerLocalObject(id, d);
    } catch (RemoteException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.jamesii.core.remote.dummyobjects.Dummy

    super.tearDown();
  }

  public void testObjectRegistration() {
    HostCentralIDFactory idFac = new HostCentralIDFactory();
    d = new Dummy();
    id = idFac.create(new ParameterBlock(d, HostCentralIDFactory.PARAM_OBJECT), SimSystem.getRegistry().createContext());
    assertTrue(null != id);

    IObjectId id2 =
        new BasicRemoteObjectId(id.getStringRep(), d.getClass().getName());
View Full Code Here

Examples of org.jamesii.core.remote.dummyobjects.Dummy

    }
  }

  public void testLocalMethodCalling() {
    HostCentralIDFactory idFac = new HostCentralIDFactory();
    d = new Dummy();
    id = idFac.create(new ParameterBlock(d, HostCentralIDFactory.PARAM_OBJECT), SimSystem.getRegistry().createContext());
    lcc.registerObject(id, d);
    Object o = lcc.executeMethod(Dummy.ONLY_METHOD, null, id);
    assertEquals(Dummy.RESULT, o);
  }
View Full Code Here

Examples of org.jboss.ejb3.interceptors.test.indirectcontainer.Dummy

      BeanContext<DummyIndirectContainer> interceptorContainer = containerContainer.construct();
      // TODO: why do we need this explicitly, can't the direct container handle this?
      interceptorContainer.getInstance().setBeanContext(interceptorContainer);
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      Class<?> interfaces[] = { Dummy.class };
      Dummy dummy = (Dummy) Proxy.newProxyInstance(loader, interfaces, interceptorContainer.getInstance());
      dummy.hit();
     
      int current = DummyInterceptor.getInvocations();
     
      assertEquals("DummyInterceptor was not hit", 1, current - previous);
   }
View Full Code Here

Examples of org.yinwang.pysonar.ast.Dummy

            return false;
        }
        List<Map<String, Object>> expectedRefs = gson.fromJson(json, List.class);
        for (Map<String, Object> r : expectedRefs) {
            Map<String, Object> refMap = (Map<String, Object>) r.get("ref");
            Dummy dummy = makeDummy(refMap);

            List<Map<String, Object>> dests = (List<Map<String, Object>>) r.get("dests");
            List<Binding> actualDests = analyzer.getReferences().get(dummy);
            List<Map<String, Object>> failedDests = new ArrayList<>();
View Full Code Here

Examples of org.yinwang.pysonar.ast.Dummy

    public static Dummy makeDummy(Map<String, Object> m) {
        String file = _.projAbsPath((String) m.get("file"));
        int start = (int) Math.floor((double) m.get("start"));
        int end = (int) Math.floor((double) m.get("end"));
        return new Dummy(file, start, end);
    }
View Full Code Here

Examples of testPackage.Dummy

    public void aMethod(String name) {
        System.out.println(name);
    }
   
    public void foo(String name) {
        Dummy dummy = new Dummy();
        dummy.foo(name);
    }
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.