Examples of scan()


Examples of jodd.io.findfile.ClassScanner.scan()

        }
      }
    };

    classScanner.setIncludeResources(true);
    classScanner.scan(containerFile);

    assertNotNull(url);

    assertEquals("/META-INF/resources/webjars/jquery/2.1.1/jquery.js", jqueryName.getValue());
  }
View Full Code Here

Examples of me.prettyprint.hom.annotations.AnnotationScanner.scan()

public class AnnotationScannerTest {

  @Test
  public void testScanForAnnotation() {
    AnnotationScanner scanner = new AnnotationScanner();
    Set<Class<?>> classSet = scanner.scan("me.prettyprint.hom.beans", javax.persistence.Entity.class);

    int count = 0;
    assertTrue(classSet.contains(MyTestBean.class));
    count++;
    assertTrue(classSet.contains(MyBlueTestBean.class));
View Full Code Here

Examples of net.sdiz.bitcoin.hash.ScanHash.scan()

          + "]");
      long startTime = System.currentTimeMillis();
      do {
        long startRoundTime = System.currentTimeMillis();
        Work work = fetchWork(config);
        boolean found = sh.scan(work, 1, config.getScanCount());
        if (found) {
          log.warning("found: " + work.data);
          if (submitWork(config, work)) {
            log.warning("Yay! Accepted!");
            accepted++;
View Full Code Here

Examples of org.antlr.tool.Interpreter.scan()

                "lexer grammar t;\n"+
                "A : 'a' | 'b' | 'c';");
    final int Atype = g.getTokenType("A");
        Interpreter engine = new Interpreter(g, new ANTLRStringStream("a"));
        engine = new Interpreter(g, new ANTLRStringStream("b"));
    Token result = engine.scan("A");
    assertEquals(result.getType(), Atype);
        engine = new Interpreter(g, new ANTLRStringStream("c"));
    result = engine.scan("A");
    assertEquals(result.getType(), Atype);
    }
View Full Code Here

Examples of org.apache.archiva.repository.scanner.RepositoryScanner.scan()

        RepositoryScanner scanner = (RepositoryScanner) lookup( RepositoryScanner.class );

        try
        {
            RepositoryScanStatistics stats = scanner.scan( repo, knownConsumerList, invalidConsumerList, ignoredContent,
                                                           RepositoryScanner.FRESH_SCAN );

            System.out.println( "\n" + stats.toDump( repo ) );
        }
        catch ( RepositoryScannerException e )
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.scan()

        IndexExpression expr = new IndexExpression("birthdate".getBytes("UTF8"), IndexOperator.EQ, FBUtilities.toByteArray(1L));
        IndexClause clause = new IndexClause(Arrays.asList(expr), "".getBytes(), 100);
        IFilter filter = new IdentityQueryFilter();
        IPartitioner p = StorageService.getPartitioner();
        Range range = new Range(p.getMinimumToken(), p.getMinimumToken());
        List<Row> rows = cfs.scan(clause, range, filter);
       
        assertEquals("IndexExpression should return two rows on recoverAndOpen",2, rows.size());
        assertTrue("First result should be 'k1'",Arrays.equals("k1".getBytes(), rows.get(0).key.key));
    }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.client.ClientProtocol.scan()

    }

    ScanResponse.Builder builder = ScanResponse.newBuilder();
    builder.setMoreResults(true);
    builder.addResult(ProtobufUtil.toResult(r));
    Mockito.when(implementation.scan(
      (RpcController)Mockito.any(), (ScanRequest)Mockito.any())).
        thenReturn(builder.build());

    // Get a connection w/ mocked up common methods.
    HConnection connection =
View Full Code Here

Examples of org.apache.jasper.servlet.TldScanner.scan()

        TldScanner scanner = new TldScanner(
                context, true, isValidateTld(), isBlockExternal());
        scanner.setClassLoader(classLoader);

        try {
            scanner.scan();
        } catch (SAXException e) {
            throw new JasperException(e);
        }
        tldCache = new TldCache(context, scanner.getUriTldResourcePathMap(),
                scanner.getTldResourcePathTaglibXmlMap());
View Full Code Here

Examples of org.apache.karaf.cave.server.api.CaveRepository.scan()

        } else {
            getCaveRepositoryService().create(name, false);
        }
        CaveRepository caveRepository = getCaveRepositoryService().getRepository(name);
        if (generateObr) {
            caveRepository.scan();
        }
        if (install) {
            getCaveRepositoryService().install(name);
        }
    }
View Full Code Here

Examples of org.apache.maven.archetype.common.util.ListScanner.scan()

        scanner.setBasedir( "" );

        scanner.setIncludes( filtered );
        scanner.setExcludes( "" );

        List<String> result = scanner.scan( files );
        getLogger().debug( "Scanned " + result.size() + " filtered files in " + files.size() + " files" );
        System.out.println(
            "Scanned " + result.size() + " filtered files in " + files.size() + " files: " + StringUtils.join(
                result.iterator(), ", " ) );
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.