1 package org.simantics.modeling.tests.commands;
3 import org.simantics.Simantics;
4 import org.simantics.db.exception.DatabaseException;
5 import org.simantics.db.layer0.util.SessionGarbageCollection;
6 import org.simantics.db.testing.common.CommandSequenceEnvironment;
7 import org.simantics.db.testing.common.WriteCommand;
9 public class CollectMemory extends WriteCommand<CommandSequenceEnvironment> {
12 public void run(CommandSequenceEnvironment environment) throws DatabaseException {
13 SessionGarbageCollection.gc(null, Simantics.getSession(), true, null, 0, 0);