SchemaService { protected boolean isSchemaFilePath(PackageInstalledContent packageInstalledContent) { if (packageInstalledContent.getType() == PackageInstalledContent.Type.DIR) return false; return isSchemaFilePath(packageInstalledContent.getPath()); } SchemaService(PackageManager packageManager, ApplicationService applicationService, SchemaProvider schemaProvider, RealmService realmService); Stream<? extends Schema<?>> findAffectedSchemas(InstallPlan installPlan); Collection<Application> findAffectedApplications(InstallPlan installPlan); void saveTftpPolicy(Config.BootOptions.PXEServicePolicyType policyType);  }
@Test public void testIsSchemaFilePath() throws Exception { final SchemaService service = new SchemaService(null, null, null, null); assertTrue(service.isSchemaFilePath(Paths.get("schema", "application", "rdesktop.xml"))); assertFalse(service.isSchemaFilePath(Paths.get("schema", "application.xml"))); assertFalse(service.isSchemaFilePath(Paths.get("schema", "somedir", "application.yml"))); }