Re: bug in test of 2.6

Karl Wettin <[email protected]> Mon, 22 Oct 2012 09:38:04 +0200
Newsgroups gmane.comp.java.prevayler
Message-ID <[email protected]>
Hi David,

thanks for the report. I'll get back to you about it soon, I think they showed up when <Generics> was added. I'll be spending some time with the project this week, updating the website to make it more clear regarding your dependency problems etc.

Somewhat related, I think it would be really cool if we managed to crowd-author some sort of book explaining how to implement using Prevayler, how to solve common problems coming from relational design, etc. It would be quite a bit of work, but I think it would be awesome for promoting the project and point to every time someone tweets about "MemoryImage" or something like that. :-) 

		karl


22 okt 2012 kl. 08:25 skrev David Niehaus:

> Hi everybody,
> 
> regarding the failed test in the test package I had a look at RollbackTest class and did the following changes to make it pass the test.
> There are more failed tests. Is this work helpful to you or is sth wrong with my set up causing the test failures.
> 
> Thanks David
> 
> public void testRollback() throws Exception {
> 		testRollback(PrevaylerFactory.createPrevayler(new AppendingSystem(), _testDirectory));
> 		testRollback(PrevaylerFactory.createTransientPrevayler(new AppendingSystem()));
>    }
> 
> 	private void testRollback(Prevayler<AppendingSystem> prevayler) throws Exception {
> 		_prevayler = prevayler;
> 
> 		append("a", "a");
> 		
> 		try {
> 			append("rollback", "ignored");
> 			fail("RuntimeException expected and not thrown.");
> 		} catch (RuntimeException rx) {
> 		}
> 
> //--------------------------------------------------------
> // CHANGE HERE
> 		append("b", "arollbackb");
> //--------------------------------------------------------
> 
> 		_prevayler.close();
> 	}
> 
> 	private void append(String appendix, String expectedResult) throws Exception {
>        _prevayler.execute(new Appendix(appendix));
>        assertEquals(expectedResult, system().value());
>    }
> 
>    private AppendingSystem system() {
>        return _prevayler.prevalentSystem();
>    }
> 
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
> _______________________________________________
> "Databases in Memoriam" -- http://www.prevayler.org


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org