Examples of dowork()


Examples of de.timefinder.core.io.text.ImportText.doWork()

                "#id\tname\tduration\tpersons\n" +
                "1\tEvent1\t10\t4,5\n" +
                "2\tEvent2\t12\t\n" +
                "3\tEvent3\t13\t\n"));

        importer.doWork();

        Dao<Event> newEDao = dataPool.getDao(Event.class);
        Dao<Person> newPDao = dataPool.getDao(Person.class);
        assertEquals(3, newEDao.getAll().size());
        assertEquals(2, newPDao.getAll().size());
View Full Code Here

Examples of de.timefinder.core.io.xml.XmlExport.doWork()

            protected void myconstruct() throws Exception {
                bar.getProgressMonitor().worked(10);
                XmlExport exporter = new XmlExport(dataPool,
                        settings, new FileOutputStream(f.getAbsoluteFile()));

                exporter.doWork();
                bar.getProgressMonitor().worked(100);
            }
        };

        sw.execute();
View Full Code Here

Examples of de.timefinder.core.io.xml.XmlImport.doWork()

                        new FileInputStream(file.getAbsolutePath()));

                // TODO NOW
//                importer.setStatusBar(bar);

                importer.doWork();
                bar.getProgressMonitor().worked(90);
            }

            @Override
            protected void done() {
View Full Code Here

Examples of de.timefinder.core.io.xml.bt.ImportBTXml.doWork()

            protected void myconstruct() throws Exception {
                bar.getProgressMonitor().worked(10);

                ImportBTXml importer = new ImportBTXml(dataPool, file);
                importer.setDataPoolSettings(settings);
                importer.doWork();
                bar.getProgressMonitor().worked(90);
            }

            @Override
            protected void done() {
View Full Code Here

Examples of de.timefinder.core.io.xml.bt.ImportBTXml.doWork()

        if (LOAD_BT) {
            ImportBTXml.overwriteSettings(settings);
            ImportBTXml importer = new ImportBTXml(dataPool, fileOrFolder);
            importer.setDataPoolSettings(settings);
            importer.doWork();
        } else {
            InputStreamReader reader = new InputStreamReader(new FileInputStream(fileOrFolder));

            DataPool4Track2 dataPool4Track2 = new DataPool4Track2();
            dataPool4Track2.setSettings(settings);
View Full Code Here

Examples of javax.resource.spi.work.WorkManager.doWork()

      TestWork work = new TestWork();
      ExecutionContext ec = new ExecutionContext();
      Xid xid = new MyXid(1);
      ec.setXid(xid);

      wm.doWork(work, 0l, ec, null);
      if (work.complete == false)
         throw new Exception("Work was not done");
      if (work.e != null)
         throw work.e;
      if (work.enlisted == false)
View Full Code Here

Examples of javax.resource.spi.work.WorkManager.doWork()

  
   public void basicTest() throws Exception
   {
      WorkManager wm = adapter.ctx.getWorkManager();
      TestWork work = new TestWork();
      wm.doWork(work);
      if (work.complete == false)
         throw new Exception("Work was not done");
   }
  
   public class TestWork implements Work
View Full Code Here

Examples of javax.resource.spi.work.WorkManager.doWork()

      TestWork work = new TestWork();
      ExecutionContext ec = new ExecutionContext();
      Xid xid = new MyXid(1);
      ec.setXid(xid);

      wm.doWork(work, 0l, ec, null);
      if (work.complete == false)
         throw new Exception("Work was not done");
      if (work.e != null)
         throw work.e;
      if (work.enlisted == false)
View Full Code Here

Examples of net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl.KeyDAOPoolWork.doWork()

        final KeyDAOPoolWork work = new KeyDAOPoolWork(key);
        this.mockCtx.checking(new Expectations(){{
            oneOf(jedis).type(key); will(returnValue(KeyType.STRING.toString()));
            oneOf(jedis).strlen(key); will(returnValue(size));
        }});
        final KeyInfo keyInfo = work.doWork(this.jedis);
        Assert.assertNotNull(keyInfo);
        Assert.assertEquals("foo", keyInfo.getNamespace());
        Assert.assertEquals("bar", keyInfo.getName());
        Assert.assertEquals(KeyType.STRING, keyInfo.getType());
        Assert.assertEquals((Long) size, keyInfo.getSize());
View Full Code Here

Examples of net.sf.cpsolver.tt.UniTimeOptimization.doWork()

            @Override
            protected void myconstruct() throws Exception {
                algorithm.setDataPoolSettings(settings);
                algorithm.setDataPool(dataPool);
                algorithm.setStatusBar(new StatusBarBridge(getApplicationWindow().getStatusBar()));
                algorithm.doWork();
            }
        };
        sw.execute();
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.