fakir
fakir copied to clipboard
Fakir fakes difficult to build objects
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...
Hi, Assuming the faked objects have proper hashcode / equals implementation, I would expect below test to work... ``` @Test public void twoInstancesShouldBeEqualIfBuiltTheSameWay_notWorking(){ NormalRequest req1=fakeA(NormalRequest.class); NormalRequest req2=fakeA(NormalRequest.class); assertEquals(req1,req2); } ```...
I'd like to easily fake an indexed getter. E.g. the method HttpServletRequest::getHeader(String) -> String. I was thinking it could be done with a map in the faker delegate. Something like:...