Skip to content

Instantly share code, notes, and snippets.

Avatar

Benoit Averty BenoitAverty

View GitHub Profile
@BenoitAverty
BenoitAverty / userChrome.css
Last active Aug 4, 2020
Hide tab bar on firefox 57 when there is only one tab
View userChrome.css
/*
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. Restart Firefox
Don't hesitate to say if there are bugs, I only tested this for my workflow : I don't use tabs
at all but I want to see the bar if I open a tab by mistake (otherwise I sometimes lose a tab)
*/
View keybase.md

Keybase proof

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:

View PlacingOrderSpec.scala
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 {
View PlacingOrderTest.java
package com.example.unit.testing.application;
import ...;
@RunWith(HierarchicalContextRunner.class)
@ContextConfiguration(
classes = OrderApplicationTestContext.class,
loader = SpringApplicationContextLoader.class)
public class PlacingOrderTest {
View OrderApplicationTest.java
package com.example.unit.testing.application;
import ...;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(OrderApplicationTestContext.class)
public class OrderApplicationTest {
// System under test
@Autowired
View OrderApplicationTest.java
package com.example.unit.testing.application;
import ...;
public class OrderApplicationTest {
@Mock
CustomerRepository customerRepository;
@Mock
View CreditCardService.java
package com.example.unit.testing.domain;
import ...;
@Service
public interface CreditCardService {
boolean isMaxedOut(String creditCardNumber, Double amount);
LocalDate expirationDate(String creditCardNumber);
}
You can’t perform that action at this time.