1 package org.simantics.modeling.tests.commands;
3 import org.simantics.db.WriteGraph;
4 import org.simantics.db.exception.DatabaseException;
5 import org.simantics.db.testing.base.AllowedThrowable;
6 import org.simantics.db.testing.common.WriteCommand;
7 import org.simantics.modeling.tests.cases.ModelingCommandSequenceTest;
10 public class FailingWrite extends WriteCommand<ModelingCommandSequenceTest> {
12 class AllowedError extends AssertionError implements AllowedThrowable {
14 private static final long serialVersionUID = -2278331008287437312L;
19 protected void run(WriteGraph graph, ModelingCommandSequenceTest environment) throws DatabaseException {
20 throw new AllowedError();