Examples of foo()


Examples of example.scannable.AutowiredQualifierFooService.foo()

  @Test
  public void componentScanWithAutowiredQualifier() {
    ClassPathXmlApplicationContext context = loadContext("componentScanWithAutowiredQualifierTests.xml");
    AutowiredQualifierFooService fooService = (AutowiredQualifierFooService) context.getBean("fooService");
    assertTrue(fooService.isInitCalled());
    assertEquals("bar", fooService.foo(123));
    context.close();
  }

  @Test
  public void customAnnotationUsedForBothComponentScanAndQualifier() {
View Full Code Here

Examples of example.scannable.FooService.foo()

    assertEquals(0, serviceInvocationCounter.getCount());

    assertTrue(fooService.isInitCalled());
    assertEquals(1, serviceInvocationCounter.getCount());

    String value = fooService.foo(1);
    assertEquals("bar", value);
    assertEquals(2, serviceInvocationCounter.getCount());

    fooService.foo(1);
    assertEquals(3, serviceInvocationCounter.getCount());
View Full Code Here

Examples of example.scannable.FooServiceImpl.foo()

    assertTrue(context.containsBean(AnnotationConfigUtils.REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME));
    assertTrue(context.containsBean(AnnotationConfigUtils.COMMON_ANNOTATION_PROCESSOR_BEAN_NAME));
    context.refresh();
    FooServiceImpl service = context.getBean("fooServiceImpl", FooServiceImpl.class);
    assertTrue(context.getDefaultListableBeanFactory().containsSingleton("myNamedComponent"));
    assertEquals("bar", service.foo(1));
    assertTrue(context.isPrototype("thoreau"));
  }

  @Test
  public void testSimpleScanWithDefaultFiltersAndPrimaryLazyBean() {
View Full Code Here

Examples of example.scannable.ScopedProxyTestBean.foo()

    context.getBeanFactory().registerScope("myScope", new SimpleMapScope());
    ScopedProxyTestBean bean = (ScopedProxyTestBean) context.getBean("scopedProxyTestBean");
    // should be a class-based proxy
    assertTrue(AopUtils.isCglibProxy(bean));
    // test serializability
    assertEquals("bar", bean.foo(1));
    ScopedProxyTestBean deserialized = (ScopedProxyTestBean) SerializationTestUtils.serializeAndDeserialize(bean);
    assertNotNull(deserialized);
    assertEquals("bar", deserialized.foo(1));
  }
View Full Code Here

Examples of jodd.proxetta.data.Abstra.foo()

      }
    });

    Abstra aaa = (Abstra) ProxyProxetta.withAspects(proxyAspect).builder(Abstra.class).newInstance();
    assertNotNull(aaa);
    aaa.foo();
  }

  @Test
  public void testAbstract2() {
    ProxyAspect proxyAspect = new ProxyAspect(FooProxyAdvice.class, new ProxyPointcut() {
View Full Code Here

Examples of myPackage.Foo.foo()

        Assert.assertTrue("Expected: " + expected + "\n  actual: " + actual, expected.equals(actual));

        Foo foo = cDoc;

        expected = "{in FooHandler.handleFoo(s: param)}";
        actual = foo.foo("param");
        Assert.assertTrue("Expected: '" + expected + "'\n  actual: '" + actual + "'", expected.equals(actual));


        Bar bar = null;
View Full Code Here

Examples of org.apache.camel.cxf.multipart.MultiPartInvoke.foo()

        e0.setV(in0);
        e1.setV(in1);
       
        javax.xml.ws.Holder<InE> h = new javax.xml.ws.Holder<InE>();
        javax.xml.ws.Holder<InE> h1 = new javax.xml.ws.Holder<InE>();
        multiPartClient.foo(e0, e1, h, h1);
        return h.value.getV() + " " + h1.value.getV();
    }
  

    protected CamelContext createCamelContext() throws Exception {
View Full Code Here

Examples of org.apache.felix.ipojo.handler.temporal.services.FooService.foo()

        Collection col = fs;
        if (col  != null) {
            Iterator it = col.iterator(); // Get the cached copy
            while (it != null && it.hasNext()) {
                FooService svc =  (FooService) it.next();
                result = result && svc.foo();
            }
        }       
        return result;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.handler.temporal.services.FooService.foo()

        Collection col = fs;
        if (col  != null) {
            Iterator it = col.iterator();
            while (it.hasNext()) {
                FooService svc =  (FooService) it.next();
                result = result && svc.foo();
            }
        }       
        return result;
    }
View Full Code Here

Examples of org.apache.felix.ipojo.handler.whiteboard.services.FooService.foo()

        fs1.foo();

        map = obs.getObservations();
        assertEquals("(1) Check list #1", ((List) map.get("list")).size(), 1);

        fs2.foo();

        map = obs.getObservations();
        assertEquals("(2) Check list #0", ((List) map.get("list")).size(), 0);

        fs2.foo();
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.