List of usage examples for java.util Collections EMPTY_SET
Set EMPTY_SET
To view the source code for java.util Collections EMPTY_SET.
Click Source Link
From source file:org.matonto.ontology.rest.impl.OntologyRestImplTest.java
@Test public void testGetObjectPropertiesInImportedOntologiesWhenNoImports() { when(ontology.getImportsClosure()).thenReturn(Collections.EMPTY_SET); Response response = target()// w w w .j a va 2 s. c o m .path("ontologies/" + encode(ontologyIRI.stringValue()) + "/imported-object-properties") .queryParam("branchId", branchId.stringValue()).queryParam("commitId", commitId.stringValue()) .request().get(); assertEquals(response.getStatus(), 204); }
From source file:org.matonto.ontology.rest.impl.OntologyRestImplTest.java
@Test public void testGetDataPropertiesInImportedOntologiesWhenNoImports() { when(ontology.getImportsClosure()).thenReturn(Collections.EMPTY_SET); Response response = target()//from w w w. j av a 2s. c o m .path("ontologies/" + encode(ontologyIRI.stringValue()) + "/imported-data-properties") .queryParam("branchId", branchId.stringValue()).queryParam("commitId", commitId.stringValue()) .request().get(); assertEquals(response.getStatus(), 204); }
From source file:org.matonto.ontology.rest.impl.OntologyRestImplTest.java
@Test public void testGetNamedIndividualsInImportedOntologiesWhenNoImports() { when(ontology.getImportsClosure()).thenReturn(Collections.EMPTY_SET); Response response = target()// www . ja v a2 s .c om .path("ontologies/" + encode(ontologyIRI.stringValue()) + "/imported-named-individuals") .queryParam("branchId", branchId.stringValue()).queryParam("commitId", commitId.stringValue()) .request().get(); assertEquals(response.getStatus(), 204); }
From source file:org.apache.openjpa.kernel.BrokerImpl.java
/** * Return a copy of all dirty state managers. */// w w w.j ava 2 s . c o m protected Collection getDirtyStates() { if (!hasTransactionalObjects()) return Collections.EMPTY_SET; return _transCache.copyDirty(); }
From source file:org.apache.openjpa.kernel.BrokerImpl.java
/** * Return a copy of all state managers which will become * transactional upon the next transaction. */// www .j a va2s .c om protected Collection getPendingTransactionalStates() { if (_pending == null) return Collections.EMPTY_SET; return new LinkedHashSet<StateManagerImpl>(_pending); }
From source file:org.apache.openjpa.kernel.BrokerImpl.java
public Collection getPersistedTypes() { if (_persistedClss == null || _persistedClss.isEmpty()) return Collections.EMPTY_SET; return Collections.unmodifiableCollection(_persistedClss); }
From source file:org.apache.openjpa.kernel.BrokerImpl.java
public Collection getUpdatedTypes() { if (_updatedClss == null || _updatedClss.isEmpty()) return Collections.EMPTY_SET; return Collections.unmodifiableCollection(_updatedClss); }
From source file:org.apache.openjpa.kernel.BrokerImpl.java
public Collection getDeletedTypes() { if (_deletedClss == null || _deletedClss.isEmpty()) return Collections.EMPTY_SET; return Collections.unmodifiableCollection(_deletedClss); }