Examples of IniLoader


Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

    }

    @Test
    public final void testVoid() throws Exception {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("empty.cfg").getFile()));
        assertTrue(parser.getAll().isEmpty());
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

    }

    @Test
    public final void testDirectory() throws IOException {
        exception.expect(IOException.class);
        new IniLoader(new File(""));
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

    }

    @Test
    public final void testNoFile() throws IOException {
        exception.expect(NoSuchFileException.class);
        new IniLoader(new File("thisfiledoesntexists"));
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        new IniLoader(new File("thisfiledoesntexists"));
    }

    @Test
    public final void testXPathGetAll() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.sequence.cfg").getFile()));
        assertEquals(174, parser.getAll().size());
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        assertEquals(174, parser.getAll().size());
    }

    @Test
    public final void testXPathGet() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.sequence.cfg").getFile()));
        for (final String key : parser.getAll()) {
            assertNotNull(key, parser.get(key));
        }
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        }
    }

    @Test
    public final void testXPathGetBadKey() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.sequence.cfg").getFile()));
        assertNull(parser.get("toto"));
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        assertNull(parser.get("toto"));
    }

    @Test
    public final void testXPathGetDuplicatedKey() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.sequence.cfg").getFile()));
        assertTrue("get last value", "private".equals(parser.get("status:archive_sequence-date")));
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        assertTrue("get last value", "private".equals(parser.get("status:archive_sequence-date")));
    }

    @Test
    public final void testXPathGetKey() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.sequence.cfg").getFile()));
        assertTrue("metadata_filepath".equals(parser.get("docid")));
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        assertTrue("metadata_filepath".equals(parser.get("docid")));
    }

    @Test
    public final void testTextGetAll() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.fasta.cfg").getFile()));
        assertEquals(9, parser.getAll().size());
    }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.cfg.IniLoader

        assertEquals(9, parser.getAll().size());
    }

    @Test
    public final void testTextGet() throws IOException {
        final IniLoader parser = new IniLoader(new File(ClassLoader.getSystemResource("idx.fasta.cfg").getFile()));
        for (final String key : parser.getAll()) {
            assertNotNull(key, parser.get(key));
        }
    }
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.