@@ -0,0 +1,2249 @@
+package org.bimserver.tests;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.IOException;%0D%0A%0D%0Aimport org.bimserver.LocalDevPluginLoader;%0D%0Aimport org.bimserver.client.json.JsonBimServerClientFactory;%0D%0Aimport org.bimserver.emf.MetaDataManager;%0D%0Aimport org.bimserver.interfaces.objects.SDeserializerPluginConfiguration;%0D%0Aimport org.bimserver.interfaces.objects.SProject;%0D%0Aimport org.bimserver.plugins.PluginManager;%0D%0Aimport org.bimserver.plugins.services.BimServerClientInterface;%0D%0Aimport org.bimserver.shared.BimServerClientFactory;%0D%0Aimport org.bimserver.shared.PublicInterfaceNotFoundException;%0D%0Aimport org.bimserver.shared.UsernamePasswordAuthenticationInfo;%0D%0Aimport org.bimserver.shared.exceptions.ServerException;%0D%0Aimport org.bimserver.shared.exceptions.UserException;%0D%0A%0D%0Apublic class TestManyRevisions %7B%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09new TestManyRevisions().start(args);%0D%0A%09%7D%0D%0A%0D%0A%09private void start(String%5B%5D args) %7B%0D%0A%09%09try %7B%0D%0A%09%09%09PluginManager pluginManager = LocalDevPluginLoader.createPluginManager(new File(%22home%22));%0D%0A%09%09%09MetaDataManager metaDataManager = new MetaDataManager(pluginManager);%0D%0A%09%09%09pluginManager.setMetaDataManager(metaDataManager);%0D%0A%09%09%09BimServerClientFactory factory = new JsonBimServerClientFactory(metaDataManager, %22http://localhost:8080%22);%0D%0A%09%09%09BimServerClientInterface client = factory.create(new UsernamePasswordAuthenticationInfo(%22%22, %22%22));%0D%0A%09%09%09try %7B%0D%0A%09%09%09%09SProject project = client.getBimsie1ServiceInterface().addProject(%22lots2%22, %22ifc2x3tc1%22);%0D%0A%09%09%09%09File%5B%5D files = new File%5B%5D%7Bnew File(%22../TestData/data/AC11-Institute-Var-2-IFC.ifc%22), new File(%22../TestData/data/AC11-FZK-Haus-IFC - Alt.ifc%22)%7D;%0D%0A%09%09%09%09SDeserializerPluginConfiguration deserializer = client.getBimsie1ServiceInterface().getSuggestedDeserializerForExtension(%22ifc%22, project.getOid());%0D%0A%09%09%09%09int fn = 0;%0D%0A%09%09%09%09for (int i=0; i%3C100; i++) %7B%0D%0A%09%09%09%09%09System.out.println(i + %22: %22 + files%5Bfn%5D.getName());%0D%0A%09%09%09%09%09client.checkin(project.getOid(), %22comment%22 + i, deserializer.getOid(), false, true, files%5Bfn%5D);%0D%0A%09%09%09%09%09fn = 1 - fn;%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D catch (ServerException %7C UserException %7C PublicInterfaceNotFoundException e) %7B%0D%0A%09%09%09%09e.printStackTrace();%0D%0A%09%09%09%7D catch (IOException e) %7B%0D%0A%09%09%09%09e.printStackTrace();%0D%0A%09%09%09%7D%0D%0A%09%09%7D catch (Exception e) %7B%0D%0A%09%09%09e.printStackTrace();%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

test a lot of revision in 1 project