I hereby claim:
- I am benoitaverty on github.
- I am benoitaverty (https://keybase.io/benoitaverty) on keybase.
- I have a public key ASBTsd2VjaQMhew_2cjsuvKjQDMXkckwnoxyMTVJhD7VoQo
To claim this, I am signing this object:
/* | |
How To: | |
1. Find your firefox profile folder : https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data | |
2. create a "chrome" folder if it doesn't exist | |
3. Paste content of this gist in a "userChrome.css" file | |
4. Go to about:config and set toolkit.legacyUserProfileCustomizations.stylesheets to true | |
5. set browser.tabs.tabmanager.enabled to false (to hide the "tab search" button) | |
5. Restart Firefox | |
Don't hesitate to say if there are bugs, I only tested this for my workflow : I don't use tabs |
I hereby claim:
To claim this, I am signing this object:
package com.example.unit.testing.application | |
import ... | |
@RunWith(classOf[JUnitRunner]) | |
@ContextConfiguration( | |
classes = Array(classOf[OrderApplicationSpecContext]), | |
loader = classOf[SpringApplicationContextLoader]) | |
class PlacingOrderSpec extends path.FunSpec with org.scalatest.Matchers { | |
package com.example.unit.testing.application; | |
import ...; | |
@RunWith(HierarchicalContextRunner.class) | |
@ContextConfiguration( | |
classes = OrderApplicationTestContext.class, | |
loader = SpringApplicationContextLoader.class) | |
public class PlacingOrderTest { |
package com.example.unit.testing.application; | |
import ...; | |
@RunWith(SpringJUnit4ClassRunner.class) | |
@SpringApplicationConfiguration(OrderApplicationTestContext.class) | |
public class OrderApplicationTest { | |
// System under test | |
@Autowired |
package com.example.unit.testing.application; | |
import ...; | |
public class OrderApplicationTest { | |
@Mock | |
CustomerRepository customerRepository; | |
@Mock |
package com.example.unit.testing.domain; | |
import ...; | |
@Service | |
public interface CreditCardService { | |
boolean isMaxedOut(String creditCardNumber, Double amount); | |
LocalDate expirationDate(String creditCardNumber); | |
} |