Examples of success()


Examples of org.cipres.treebase.auxdata.RDParserResult.success()

   
    Filter repatriateStudyAuthors = new RepatriateStudyAuthors(me.getSession(), System.out);
    AuxiliaryDataParser parser = new AuxiliaryDataParser(repatriateStudyAuthors);
    RDParserResult result = parser.parseFile(f);
    parser.reportResults(System.err, result);
    System.exit(result.success() ? 0 : 1);
  }
 
}
View Full Code Here

Examples of org.geotools.coverage.grid.io.HarvestedSource.success()

            File fileToHarvest = new File(mosaic, "polyphemus_20130302_test.nc");
            List<HarvestedSource> harvestSummary = reader.harvest(null, fileToHarvest, null);
            assertEquals(1, harvestSummary.size());
            HarvestedSource hf = harvestSummary.get(0);
            assertEquals("polyphemus_20130302_test.nc", ((File) hf.getSource()).getName());
            assertTrue(hf.success());
            assertEquals(1, reader.getGridCoverageNames().length);
           
            // check that we have four times now
            granules = source.getGranules(q);
            assertEquals(4, granules.size());
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.test.steps.SemaphoreStep.success()

        exec.get().start();
        FlowNode n = l.next();
        assertTrue(String.valueOf(n), n instanceof FlowStartNode);
        n = l.next();
        assertTrue(n instanceof BlockStartNode);
        step.success(null);
        n = l.next();
        assertTrue(n instanceof AtomNode);
        // TODO check that it is finished now
        n = l.next();
        assertTrue(n instanceof BlockEndNode);
View Full Code Here

Examples of org.jrest4guice.rest.annotations.PageFlow.success()

            session.setAttribute(ServiceResult.INVALID_VALUE_KEY,
                httpResult.getInvalidValues());
          }

        } else {
          pageInfo = annotation.success();
          Object invalidValues = session
              .getAttribute(ServiceResult.INVALID_VALUE_KEY);
          if (invalidValues != null) {
            httpResult
                .setInvalidValues((InvalidValue[]) invalidValues);
View Full Code Here

Examples of org.keycloak.events.EventBuilder.success()

                }

                session.users().addSocialLink(realm, authenticatedUser, socialLink);
                logger.debugv("Social provider {0} linked with user {1}", provider.getId(), authenticatedUser.getUsername());

                event.success();
                return Response.status(302).location(UriBuilder.fromUri(clientSession.getRedirectUri()).build()).build();
            }

            if (user == null) {
                user = session.users().addUser(realm, KeycloakModelUtils.generateId());
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.success()

    try {
      tx = neo4jDb.beginTx();
      for ( PersistentNoSqlIdentifierGenerator generator : identifierGenerators ) {
        addSequence( generator );
      }
      tx.success();
    }
    finally {
      tx.close();
    }
  }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.success()

        }
      }

      lock = tx.acquireWriteLock( sequence );
      int nextValue = updateSequenceValue( idSourceKey, sequence, increment );
      tx.success();
      lock.release();
      return nextValue;
    }
    finally {
      tx.close();
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.success()

    try {
      tx = neo4jDb.beginTx();
      for ( PersistentNoSqlIdentifierGenerator identifierGenerator : identifierGenerators ) {
        addUniqueConstraint( identifierGenerator );
      }
      tx.success();
    }
    finally {
      tx.close();
    }
  }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.success()

      log.debug( "Creating missing constraints" );
      Transaction tx = null;
      try {
        tx = neo4jDb.beginTx();
        addUniqueConstraints( neo4jDb, configuration );
        tx.success();
      }
      finally {
        tx.close();
      }
    }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.success()

        Transaction tx = gdb.beginTx();
        final Node node = index.get("id", info.getId()).getSingle();
        assertNotNull(node);
        assertEquals(info.getId(), node.getProperty("id"));
        assertEquals(info.getVersion(),node.getProperty("version"));
        tx.success();tx.close();
    }

    @Test
    public void testCreateWithNoRoot() throws Exception {
        final GraphInfo info = storage.create(new GraphInfo(Util.randomId(), "init", "query", "message","version",true));
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.