Examples of contribute()


Examples of ch.sahits.game.openpatrician.model.city.impl.Contributions.contribute()

  @Override
  public int move(IWare ware, int amount,IPlayer player) {
    int moved = super.move(ware, amount,player);
    if (player!=null){ // possible from test or from the city itself
      Contributions contrib = playersContributions.get(player);
      contrib.contribute(ware, moved);
    }
    return moved;
  }
  @Override
  public int getContribution(IPlayer player, IWare ware){
View Full Code Here

Examples of org.apache.shindig.gadgets.config.ConfigContributor.contribute()

          "feature1", "feature2");
    if (extraContrib) {
      libsBuilder.add("feature3");
      ConfigContributor cc = control.createMock(ConfigContributor.class);
      Capture<Map<String, Object>> captureConfig = new Capture<Map<String, Object>>();
      cc.contribute(capture(captureConfig), eq(CONTAINER), eq(HOST));
      expectLastCall().andAnswer(new IAnswer<Void>() {
        @SuppressWarnings("unchecked")
        public Void answer() throws Throwable {
          Map<String, Object> config = (Map<String, Object>)getCurrentArguments()[0];
          String f3Value = (String)config.get("feature3");
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        replay();

        Method m = findMethod("contributeUnordered");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        def.contribute(this, locator, configuration);

        verify();
    }

    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        replay();

        Method m = findMethod("contributeUnorderedParameter");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        def.contribute(this, locator, configuration);

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        Method m = findMethod("contributeUnorderedWrongParameter");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        try
        {
            def.contribute(this, locator, configuration);
            unreachable();
        }
        catch (RuntimeException ex)
        {
            assertEquals(ex.getMessage(), "Error invoking service contribution method "
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        replay();

        Method m = findMethod("contributeOrderedParameter");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        def.contribute(this, locator, configuration);

        verify();
    }

    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        replay();

        Method m = findMethod("contributeMappedParameter");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        def.contribute(this, locator, configuration);

        verify();
    }

    private UpcaseService mockUpcaseService()
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        replay();

        Method m = findMethod("contributeUnordered");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        def.contribute(this, locator, configuration);

        verify();
    }

    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        replay();

        Method m = findMethod("contributeUnorderedParameter");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        def.contribute(this, locator, configuration);

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.ioc.def.ContributionDef.contribute()

        Method m = findMethod("contributeUnorderedWrongParameter");
        ContributionDef def = new ContributionDefImpl("foo.Bar", m, null);

        try
        {
            def.contribute(this, locator, configuration);
            unreachable();
        }
        catch (RuntimeException ex)
        {
            assertEquals(ex.getMessage(), "Error invoking service contribution method "
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.