| |
|
| org.sakaiproject.tool.gradebook.test.GradebookTestBase org.sakaiproject.tool.gradebook.test.GradebookLoaderBase org.sakaiproject.tool.gradebook.test.TestServiceAgainstLoadedData
TestServiceAgainstLoadedData | public class TestServiceAgainstLoadedData extends GradebookLoaderBase (Code) | | This odd-looking JUnit class provides a very primitive test for data
contention when using the external service API. You'll see what look like
the same "tests" several times in a row. The idea is to run the test from
multiple windows simultaneously and try for locking exceptions.
Pretty cheap stuff, but it took less time to get going than trying to
coordinate one of the JUnit multi-threading add-on projects with
Spring and Hivernate....
Sample usage:
# Build standalone and load up the test database.
cd ../sections/
maven -Dmode=standalone -Dhibernate.properties.dir=C:/java/sakaisettings/mysql-standalone cln bld
cd ../gradebook
maven -Dhibernate.properties.dir=C:/java/sakaisettings/mysql-standalone cln bld
maven -Dhibernate.properties.dir=C:/java/sakaisettings/mysql-standalone load-full-standalone
# Then do this from as many windows as you feel up to.
cd app/standalone-app/
maven -Dhibernate.properties.dir=C:/java/sakaisettings/mysql-standalone test-against-loaded-data
|
TestServiceAgainstLoadedData | public TestServiceAgainstLoadedData()(Code) | | |
testUpdateExternalScore | public void testUpdateExternalScore() throws Exception(Code) | | |
testUpdateExternalScore2 | public void testUpdateExternalScore2() throws Exception(Code) | | |
testUpdateExternalScores | public void testUpdateExternalScores() throws Exception(Code) | | |
testUpdateExternalScores2 | public void testUpdateExternalScores2() throws Exception(Code) | | |
testUpdateExternalScores2Same | public void testUpdateExternalScores2Same() throws Exception(Code) | | |
Methods inherited from org.sakaiproject.tool.gradebook.test.GradebookLoaderBase | protected String[] getConfigLocations()(Code)(Java Doc)
|
|
|
|