Commit Graph

23 Commits

Author SHA1 Message Date
Robert von Burg 0fbd156929 [New] Added convenience method Locator.newLocatorBuilder(String...) 2014-08-21 17:52:00 +02:00
Robert von Burg a5f00f990c [Major] added missing parsing of StrolchTimedState and fixed locators
Locators are now a bit different, to handle finding StrolchTimedState as
well, the Locator has the form:
Resource/<type>/<id>/State/<id>
Resource/<type>/<id>/Bag/<id>/<param_id>
2014-08-21 17:42:26 +02:00
Robert von Burg 2033c6b942 [Major] Refactored StrolchConfiguration.xml to use environments
Now the agent requires an environment parameter to start, and the
configuration of that environment is used to load different sections of
the configuration file
2014-08-13 16:06:23 +02:00
Robert von Burg 66276b5ced [New] added StrolchQuery.getSelection() and cleaned up some constants 2014-08-04 14:51:09 +02:00
Robert von Burg ef15d4af1f [New] extended XmlExportModelService to handle overwriting existing 2014-07-31 20:05:54 +02:00
Robert von Burg b1622eab47 [Major] refactored Service tests for easier re-use
It is now also very easy to inject a before, after and validator to
validate the services execution
2014-07-31 17:57:08 +02:00
Robert von Burg 29ca8ba3c5 [New] Added ClearModelServiceTest 2014-07-31 16:34:58 +02:00
Robert von Burg f12d731145 [Minor] documenting how to run tests by adding user for postgresql 2014-06-13 17:53:42 +02:00
Robert von Burg 5e088b7a52 [New] Added tests for Command.undo() for all Command implementations
Except for the XML Import and Export commands...
2014-03-10 22:34:36 +01:00
Robert von Burg 411b7e00df [Major] Implemented tests for all Services
These tests are simple success tests, failure tests come later. Each
tests makes tests that the service works in CACHED, TRANSACTIONAL and
TRANSIENT data store mode.
2014-03-03 23:35:17 +01:00
Robert von Burg c3a556df81 [Minor] trying to fix broken LockingTest which has an infinite loop 2014-02-24 21:57:57 +01:00
Robert von Burg 069361f476 [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:24 +01:00
Robert von Burg 1f4755939a [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:24 +01:00
Robert von Burg bb9caf6554 [New] XmlExportModelService now has multi file support
Also added tests for exporting model
2014-02-14 21:18:14 +01:00
Robert von Burg 8e273b1306 [Minor] there is no getDefaultRealm() method anymore 2014-02-13 22:22:04 +01:00
Robert von Burg f0f98ebd4a [Major] removed project li.strolch.persistence.api
Moved all classes to li.strolch.runtime
2014-01-10 16:50:27 +01:00
Robert von Burg 8408e5e62a [Minor] fixed compile error due to change in privilege 2013-12-29 23:13:15 +01:00
Robert von Burg 1a6df8bca4 [Major] RuntimeMock now also copies data 2013-12-25 19:04:53 +01:00
Robert von Burg 446c250500 [Minor] refactored tests for persistence layers to remove duplicate code 2013-12-25 17:02:19 +01:00
Robert von Burg ee62256771 [Minor] fixed issue where eclipse couldn't validate log4j.xml 2013-12-25 11:56:19 +01:00
Robert von Burg 2008fb49c6 [Project] Changed all licence references to Apache License 2.0 2013-12-15 13:10:27 +01:00
Robert von Burg f49f113b70 [New] Implemented EMPTY and TRANSIENT dataStoreModes.
Refactored Agent to be responsible for starting the container. And it
requires the runtime configuration.
2013-11-25 18:53:53 +01:00
Robert von Burg 86db450fb6 [New] Implemented ServiceHandler with Privilege validation
Performing a Service is as simple as this:
  GreetingService greetingService = new GreetingService();
  GreetingArgument greetingArgument = new GreetingArgument();
  greetingArgument.name = "Robert";
  GreetingResult greetingResult = serviceHandler.
        doService(null, greetingService, greetingArgument);
  assertThat(greetingResult.getGreeting(), 
        containsString("Hello Robert. Nice to meet you!"));
2013-11-16 01:13:13 +01:00