Examples of Meta


Examples of org.jbehave.core.model.Meta

        stepCreator.useParanamer(new CachingParanamer(new BytecodeReadingParanamer()));

        // When
        Date aDate = new Date();
        when(parameterConverters.convert(anyString(), eq(Date.class))).thenReturn(aDate);
        Step stepWithMeta = stepCreator.createBeforeOrAfterStep(SomeSteps.methodFor("aMethodWithDate"), new Meta());
        StepResult stepResult = stepWithMeta.perform(null);

        // Then
        assertThat(stepResult, instanceOf(Skipped.class));
        assertThat((Date) stepsInstance.args, is(aDate));
View Full Code Here

Examples of org.odftoolkit.simple.meta.Meta

   *         <code>office:meta</code> in the meta.xml
   */
  public Meta getOfficeMetadata() {
    if (mOfficeMeta == null) {
      try {
        mOfficeMeta = new Meta(getMetaDom());
      } catch (Exception ex) {
        Logger.getLogger(Document.class.getName()).log(Level.SEVERE, null, ex);
      }
    }
    return mOfficeMeta;
View Full Code Here

Examples of org.springframework.data.mongodb.core.query.Meta

   */
  @Test
  public void doesNotApplyMetaWhenEmpty() {

    Query query = query(where("foo").is("bar"));
    query.setMeta(new Meta());

    pepare(query);

    verify(cursor, never()).copy();
    verify(cursorToUse, never()).addSpecial(any(String.class), anyObject());
View Full Code Here

Examples of org.springframework.data.mongodb.repository.Meta

   * @return never {@literal null}.
   * @since 1.6
   */
  public org.springframework.data.mongodb.core.query.Meta getQueryMetaAttributes() {

    Meta meta = getMetaAnnotation();
    if (meta == null) {
      return new org.springframework.data.mongodb.core.query.Meta();
    }

    org.springframework.data.mongodb.core.query.Meta metaAttributes = new org.springframework.data.mongodb.core.query.Meta();
    if (meta.maxExcecutionTime() > 0) {
      metaAttributes.setMaxTimeMsec(meta.maxExcecutionTime());
    }

    if (meta.maxScanDocuments() > 0) {
      metaAttributes.setMaxScan(meta.maxScanDocuments());
    }

    if (StringUtils.hasText(meta.comment())) {
      metaAttributes.setComment(meta.comment());
    }

    if (meta.snapshot()) {
      metaAttributes.setSnapshot(meta.snapshot());
    }

    return metaAttributes;
  }
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.