Examples of addEvent()


Examples of bitronix.tm.mock.events.EventRecorder.addEvent()

        final XAConnection mockXAConnection = mock(XAConnection.class);
        // Handle XAConnection.close(), first time we answer, after that we throw
        doAnswer(new Answer<Object>() {
      public Object answer(InvocationOnMock invocation) throws Throwable {
        EventRecorder eventRecorder = EventRecorder.getEventRecorder(mockXAConnection);
        eventRecorder.addEvent(new XAConnectionCloseEvent(mockXAConnection));
        return null;
      }
    }).doThrow(new SQLException("XAConnection is already closed")).when(mockXAConnection).close();

        when(mockXAConnection.getXAResource()).thenReturn(xaResource);
View Full Code Here

Examples of com.agilebooster.data.entity.Project.addEvent()

            em.persist(event);
            em.flush();

            //Update Project.
            Project project = event.getProject();
            project.addEvent(event);
            em.merge(project);

            //Update Organizer
            User organizer = event.getOrganizer();
            organizer.addEventOrganized(event);
View Full Code Here

Examples of com.bluesoft.util.metrics.core.MeteringMetric.addEvent()

      }
    } );

    MeteringMetric baseMeteringMetric = new BasicMeteringMetric( "testMeteringMetric" );
    MeteringMetric asyncMeteringMetric = testManager.createQueuedMeteringMetric( baseMeteringMetric );
    asyncMeteringMetric.addEvent( new BasicMetricEvent() );
    assertEquals( baseMeteringMetric.getCount(), BigInteger.ONE );
    assertEquals( asyncMeteringMetric.getCount(), BigInteger.ONE );
    assertEquals( eventCount, 1 );
  }
}
View Full Code Here

Examples of com.bluesoft.util.metrics.core.TimingMetric.addEvent()

  @Test
  public void testAddEvent() {
    TimingMetric mock = createMock( TimingMetric.class );
    UnitRoundingTimingMetric rounder = new UnitRoundingTimingMetric( TimeUnit.MINUTES, TimeUnit.MILLISECONDS, mock );
    final BasicTimingEvent event = new BasicTimingEvent( 0L, 15L );
    mock.addEvent( same( event ) );
    expectLastCall().once();
    replay( mock );
    rounder.addEvent( event );
    verify( mock );
  }
View Full Code Here

Examples of com.centraview.marketing.events.EventsLocal.addEvent()

    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.addEvent(mapEvent, userId);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = 1;
    }
    return result;
View Full Code Here

Examples of com.centraview.marketing.marketingfacade.MarketingFacade.addEvent()

            } //end of while loop (attachmentIterator.hasNext())
          } //end of if statement (attachments != null)

          newEventHashMap.put("Attachment", newAttachments);

          newEventID = remote.addEvent(newEventHashMap, individualId);
        } //end of if statement (eventDetails != null)

        Collection oldEventAttendees = remote.getAttendeesForEvent(individualId, eventID);
        if (oldEventAttendees != null)
        {
View Full Code Here

Examples of com.centraview.marketing.marketingfacade.MarketingFacade.addEvent()

      remote.setDataSource(dataSource);

      String[] attchmentids = request.getParameterValues("attachfile");
      mapEvent.put("Attachment", attchmentids);

      eventid = remote.addEvent(mapEvent, individualID);
      request.setAttribute("TypeOfOperation", "Event");
    }// end of try block
    catch (Exception exe) {
      logger.error("[execute] SaveNewEventHandler saveEvent thrown.", exe);
    }// end of catch block
View Full Code Here

Examples of com.google.wave.api.impl.EventMessageBundle.addEvent()

  }

  @SuppressWarnings("unchecked")
  public void testProcessSendsBundleAndCallsOperationsApplicator() throws Exception {
    EventMessageBundle messages = new EventMessageBundle(ROBOT_NAME.toEmailAddress(), "");
    messages.addEvent(new DocumentChangedEvent(null, null, ALEX.getAddress(), 0L, "b+1234"));
    when(eventGenerator.generateEvents(
        any(WaveletAndDeltas.class), anyMap(), any(EventDataConverter.class))).thenReturn(messages);

    OperationRequest op = new OperationRequest("wavelet.fetch", "op1");
    List<OperationRequest> ops = Collections.singletonList(op);
View Full Code Here

Examples of com.jgaap.util.EventSet.addEvent()

    eventSet1.addEvent(new Event("A", null));
    eventSet1.addEvent(new Event("A", null));
    eventSet1.addEvent(new Event("A", null));
    eventSet1.addEvent(new Event("A", null));
    eventSet1.addEvent(new Event("B", null));
    eventSet1.addEvent(new Event("B", null));
    eventSet1.addEvent(new Event("B", null));
    eventSet1.addEvent(new Event("C", null));
    eventSets.add(eventSet1);
    EventSet eventSet2 = new EventSet();
    eventSet2.addEvent(new Event("A", null));
View Full Code Here

Examples of com.jgaap.util.NumericEventSet.addEvent()

        EventSet words = wordEventDriver.createEventSet(text);
        NumericEventSet eventSet = new NumericEventSet();
        for(Event event : words) {
          String current = event.toString();
          if(halFrequencies.containsKey(current)) {
            eventSet.addEvent(new Event(halFrequencies.get(current), this));
          }
        }
        return eventSet;
    }
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.