@Test void testAddReference() { assertThat( catchThrowable(() -> store.addReference(mock(ManyFeatureBean.class), mock(Id.class))) ).isExactlyInstanceOf(READONLY_EXCEPTION_TYPE); }
@Override public void addReference(ManyFeatureBean feature, Id reference) { throw e.get(); }
ReadOnlyStore extends AbstractStore { @Override public void addReference(ManyFeatureBean feature, Id reference) { throw e.get(); } }
ReadOnlyStore extends AbstractStore { @Override public void addReference(ManyFeatureBean feature, Id reference) { throw e.get(); } ReadOnlyStore(); }
ReadOnlyStore extends AbstractStore { @Override public void addReference(ManyFeatureBean feature, Id reference) { throw e.get(); } ReadOnlyStore(); @Override void save(); @Override void containerFor(Id id, SingleFeatureBean container); @Override void removeContainer(Id id); @Override boolean metaClassFor(Id id, ClassBean metaClass); @Nonnull @Override Optional<V> valueFor(SingleFeatureBean feature, V value); @Override void removeValue(SingleFeatureBean feature); @Nonnull @Override Optional<Id> referenceFor(SingleFeatureBean feature, Id reference); @Override void removeReference(SingleFeatureBean feature); @Nonnull @Override Optional<V> valueFor(ManyFeatureBean feature, V value); @Override void addValue(ManyFeatureBean feature, V value); @Override void addAllValues(ManyFeatureBean feature, List<? extends V> collection); @Nonnegative @Override int appendValue(SingleFeatureBean feature, V value); @Nonnegative @Override int appendAllValues(SingleFeatureBean feature, List<? extends V> collection); @Nonnull @Override Optional<V> removeValue(ManyFeatureBean feature); @Override void removeAllValues(SingleFeatureBean feature); @Nonnull @Override Optional<Id> referenceFor(ManyFeatureBean feature, Id reference); @Override void addReference(ManyFeatureBean feature, Id reference); @Override void addAllReferences(ManyFeatureBean feature, List<Id> collection); @Nonnegative @Override int appendReference(SingleFeatureBean feature, Id reference); @Nonnegative @Override int appendAllReferences(SingleFeatureBean feature, List<Id> collection); @Nonnull @Override Optional<Id> removeReference(ManyFeatureBean feature); @Override void removeAllReferences(SingleFeatureBean feature); }
ReadOnlyStore extends AbstractStore { @Override public void addReference(ManyFeatureBean feature, Id reference) { throw e.get(); } ReadOnlyStore(); @Override void save(); @Override void containerFor(Id id, SingleFeatureBean container); @Override void removeContainer(Id id); @Override boolean metaClassFor(Id id, ClassBean metaClass); @Nonnull @Override Optional<V> valueFor(SingleFeatureBean feature, V value); @Override void removeValue(SingleFeatureBean feature); @Nonnull @Override Optional<Id> referenceFor(SingleFeatureBean feature, Id reference); @Override void removeReference(SingleFeatureBean feature); @Nonnull @Override Optional<V> valueFor(ManyFeatureBean feature, V value); @Override void addValue(ManyFeatureBean feature, V value); @Override void addAllValues(ManyFeatureBean feature, List<? extends V> collection); @Nonnegative @Override int appendValue(SingleFeatureBean feature, V value); @Nonnegative @Override int appendAllValues(SingleFeatureBean feature, List<? extends V> collection); @Nonnull @Override Optional<V> removeValue(ManyFeatureBean feature); @Override void removeAllValues(SingleFeatureBean feature); @Nonnull @Override Optional<Id> referenceFor(ManyFeatureBean feature, Id reference); @Override void addReference(ManyFeatureBean feature, Id reference); @Override void addAllReferences(ManyFeatureBean feature, List<Id> collection); @Nonnegative @Override int appendReference(SingleFeatureBean feature, Id reference); @Nonnegative @Override int appendAllReferences(SingleFeatureBean feature, List<Id> collection); @Nonnull @Override Optional<Id> removeReference(ManyFeatureBean feature); @Override void removeAllReferences(SingleFeatureBean feature);  }