Search in sources :

Example 1 with FileConfiguration

use of org.qi4j.library.fileconfig.FileConfiguration in project qi4j-sdk by Qi4j.

the class JdbmEntityStoreTest method testDataCleanup.

@Before
public void testDataCleanup() {
    FileConfiguration fileConfig = module.findService(FileConfiguration.class).get();
    FileConfigurationDataWiper.registerApplicationPassivationDataWiper(fileConfig, application);
}
Also used : FileConfiguration(org.qi4j.library.fileconfig.FileConfiguration) Before(org.junit.Before)

Example 2 with FileConfiguration

use of org.qi4j.library.fileconfig.FileConfiguration in project qi4j-sdk by Qi4j.

the class ApplicationXmlTest method testApplicationXml.

@Test
public void testApplicationXml() throws Exception {
    FileConfiguration fileConfig = (FileConfiguration) module.findService(FileConfiguration.class).get();
    ApplicationSerializer parser = new ApplicationSerializer();
    // TODO Fix this
    Iterable<Statement> graph = parser.serialize(application);
    writeN3(graph);
    writeXml(graph);
}
Also used : FileConfiguration(org.qi4j.library.fileconfig.FileConfiguration) Statement(org.openrdf.model.Statement) ApplicationSerializer(org.qi4j.library.rdf.model.ApplicationSerializer) AbstractQi4jTest(org.qi4j.test.AbstractQi4jTest) Test(org.junit.Test)

Aggregations

FileConfiguration (org.qi4j.library.fileconfig.FileConfiguration)2 Before (org.junit.Before)1 Test (org.junit.Test)1 Statement (org.openrdf.model.Statement)1 ApplicationSerializer (org.qi4j.library.rdf.model.ApplicationSerializer)1 AbstractQi4jTest (org.qi4j.test.AbstractQi4jTest)1