Examples of deleteSubscriber()


Examples of barsuift.simLife.j3d.tree.TreeLeaf3D.deleteSubscriber()

    public void testUpdate() {
        TreeLeaf3D leaf3D = leaf.getTreeLeaf3D();
        // the leaf should be a subscriber of the leaf3D
        assertEquals(1, leaf3D.countSubscribers());
        // assert the leaf is really one of the subscribers of the leaf3D
        leaf3D.deleteSubscriber(leaf);
        assertEquals(0, leaf3D.countSubscribers());


        publisherHelper.addSubscriberTo(leaf);
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeLeaf3D.deleteSubscriber()

            // assert the leaf3D is really one of the subscribers of the leaf
            treeLeaf.deleteSubscriber(treeLeaf3D);
            assertEquals(0, treeLeaf.countSubscribers());

            // assert the leaf is really one of the subscribers of the leaf3D
            treeLeaf3D.deleteSubscriber(treeLeaf);
            assertEquals(0, treeLeaf3D.countSubscribers());

        }

        MockTreeLeaf treeLeaf = new MockTreeLeaf();
View Full Code Here

Examples of barsuift.simLife.tree.MockTreeLeaf.deleteSubscriber()

        gravity.addFallingLeaf(treeLeaf);
        assertEquals(3, gravity.getFallingLeaves().size());
        assertEquals(3, gravity.getGravity3D().getGroup().numChildren());
        // gravity is subscriber of the leaf
        assertEquals(1, treeLeaf.countSubscribers());
        treeLeaf.deleteSubscriber(gravity);
        // assert the gravity is really one of the subscribers of the leaf
        assertEquals(0, treeLeaf.countSubscribers());
    }

    public void testUpdate() {
View Full Code Here

Examples of com.agiletec.plugins.jpnewsletter.aps.system.services.newsletter.INewsletterManager.deleteSubscriber()

  public String deleteSubscription() {
    try {
      INewsletterManager newsletterManager = this.getNewsletterManager();
      Subscriber subscriber = newsletterManager.loadSubscriber(this.getMailAddress());
      if (null != subscriber) {
        newsletterManager.deleteSubscriber(this.getMailAddress());
      } else {
        String[] args = {this.getMailAddress()};
        this.addActionError(this.getText("jpnewsletter.messsage.emailNotPresent", args));
        return INPUT;
      }
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.