Examples of now()


Examples of org.apache.sling.commons.scheduler.Scheduler.NOW()

        TransportAuthenticationProvider<CredentialsProvider, CredentialsProvider> authProvider = mock(TransportAuthenticationProvider.class);
        when(authProvider.canAuthenticate(CredentialsProvider.class)).thenReturn(true);
        Scheduler scheduler = mock(Scheduler.class);
        ScheduleOptions options = mock(ScheduleOptions.class);
        when(options.name(handler.toString())).thenReturn(options);
        when(scheduler.NOW()).thenReturn(options);
        RemoteEventReplicationTrigger remoteEventReplicationTrigger = new RemoteEventReplicationTrigger(
                endpoint, authProvider, scheduler);
        remoteEventReplicationTrigger.register(handler);
    }
View Full Code Here

Examples of org.fcrepo.server.journal.entry.JournalEntryContext.now()

        context1.setNoOp(true);

        String xmlString =
                "<context>\n" + "  <password>ShoopShoop</password>\n"
                        + "  <noOp>true</noOp>\n" + "  <now>"
                        + JournalHelper.formatDate(context1.now()) + "</now>\n"
                        + "  <multimap name=\"environment\"></multimap>\n"
                        + "  <multimap name=\"subject\"></multimap>\n"
                        + "  <multimap name=\"action\"></multimap>\n"
                        + "  <multimap name=\"resource\"></multimap>\n"
                        + "  <multimap name=\"recovery\"></multimap>\n"
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.now()

            }

            Iterator it = updatedTopics.iterator();

            HashMap lastIntimeMap = (HashMap) session.getAttribute(IConst.SESSION.LAST_INTIME);
            Date now = dao.now();

            while (it.hasNext()) {
                updateLastVisitTime(lastIntimeMap, (String) it.next(), now);
            }
        } catch (SQLException sqle) {
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.now()

      }
      request.setAttribute(IConst.REQUEST.CURR_FORUM, currForum);
      session.setAttribute(IConst.SESSION.CURR_FORUM, currForum);
      updateLastVisitTime((HashMap) session
          .getAttribute(IConst.SESSION.LAST_INTIME), ptForm.getTid(),
          dao.now());
      RecordsData recordsData = new RecordsData();
      Topic currThread = dao.getThreadInfo(tid);
      dao.fillMessagesList(user, recordsData, ptForm);
      Iterator it = recordsData.getRecords().iterator();
      boolean attachEnabled = Configurator.getInstance().getBoolean(
View Full Code Here

Examples of org.sonar.api.utils.System2.now()

  public void setUp() throws Exception {
    db.executeUpdateSql("truncate table active_rule_changes");
    db.executeUpdateSql("truncate table active_rule_param_changes");
    DbClient dbClient = new DbClient(db.database(), db.myBatis());
    System2 system = mock(System2.class);
    when(system.now()).thenReturn(UtcDateUtils.parseDateTime("2014-07-03T12:00:00+0000").getTime());
    migration = new FeedQProfileDatesMigration(dbClient, system);
  }

  @Test
  public void feed_created_at_and_updated_at() throws Exception {
View Full Code Here

Examples of org.sonar.api.utils.System2.now()

  @Before
  public void before() {
    this.session = db.myBatis().openSession(false);

    System2 system2 = mock(System2.class);
    when(system2.now()).thenReturn(DateUtils.parseDate("2011-09-29").getTime());
    this.sut = new SwitchSnapshotStep(new SnapshotDao(system2));
  }

  @After
  public void after() {
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.