]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/FailingWrite.java
Small but effective HiDPI fixes for platform G2D
[simantics/platform.git] / bundles / org.simantics.modeling.tests / src / org / simantics / modeling / tests / commands / FailingWrite.java
1 package org.simantics.modeling.tests.commands;
2
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;
8
9
10 public class FailingWrite extends WriteCommand<ModelingCommandSequenceTest> {
11
12         class AllowedError extends AssertionError implements AllowedThrowable {
13
14                 private static final long serialVersionUID = -2278331008287437312L;
15                 
16         }
17         
18         @Override
19         protected void run(WriteGraph graph, ModelingCommandSequenceTest environment) throws DatabaseException {
20                 throw new AllowedError();
21         }
22
23 }