Package com.asakusafw.directio.hive.tools.cli.GenerateCreateTableTask

Examples of com.asakusafw.directio.hive.tools.cli.GenerateCreateTableTask.Configuration


     */
    @Test
    public void parse_simple() throws Exception {
        File source = folder.newFolder();
        File output = folder.newFile();
        Configuration conf = parse(new String[] {
                "--classpath", source.getPath(),
                "--output", output.getPath(),
        });
        assertThat(conf.sources, hasSize(1));
        assertThat(conf.sources.get(0).getCanonicalFile(), is(source.getCanonicalFile()));
View Full Code Here


     * @throws Exception if failed
     */
    @Test
    public void parse_w_args() throws Exception {
        File plugin = folder.newFolder();
        Configuration conf = parse(new String[] {
                "--classpath", folder.newFolder().getPath(),
                "--output", folder.newFile().getPath(),
                "--location", "/home/dwh",
                "--database", "testdb",
                "--pluginpath", plugin.getPath(),
View Full Code Here

        Assume.assumeTrue(classes.exists());
        return classes.getPath();
    }

    private Configuration parse(String[] args) throws ParseException, IOException {
        Configuration conf = GenerateCreateTable.parseConfiguration(args);
        if (conf.classLoader instanceof Closeable) {
            ((Closeable) conf.classLoader).close();
        }
        return conf;
    }
View Full Code Here

     * simple case.
     * @throws Exception if failed
     */
    @Test
    public void simple() throws Exception {
        Configuration conf = new Configuration(
                getClass().getClassLoader(),
                source(),
                Pattern.compile("testing"),
                Stringnizer.NULL,
                null,
View Full Code Here

     * w/o accept table names (any tables).
     * @throws Exception if failed
     */
    @Test
    public void wo_acceptTableNames() throws Exception {
        Configuration conf = new Configuration(
                getClass().getClassLoader(),
                source(),
                null,
                Stringnizer.NULL,
                null,
View Full Code Here

     * w/ location.
     * @throws Exception if failed
     */
    @Test
    public void w_location() throws Exception {
        Configuration conf = new Configuration(
                getClass().getClassLoader(),
                source(),
                Pattern.compile("testing"),
                new Stringnizer() {
                    @Override
View Full Code Here

     * w/ database name.
     * @throws Exception if failed
     */
    @Test
    public void w_databaseName() throws Exception {
        Configuration conf = new Configuration(
                getClass().getClassLoader(),
                source(),
                Pattern.compile("testing"),
                null,
                "testdb",
View Full Code Here

TOP

Related Classes of com.asakusafw.directio.hive.tools.cli.GenerateCreateTableTask.Configuration

Copyright © 2018 www.massapicom. 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.