Skip to content

Instantly share code, notes, and snippets.

View avmohan's full-sized avatar
🎯
Focusing

Abhijith V Mohan avmohan

🎯
Focusing
View GitHub Profile
@avmohan
avmohan / CustomMatchers.java
Created June 10, 2023 09:12
Mockito argument matcher that satisfies assertj assertions
import java.util.function.Consumer;
import org.assertj.core.matcher.AssertionMatcher;
import org.mockito.hamcrest.MockitoHamcrest;
public class CustomMatchers {
private CustomMatchers() {}
public static <T> T argSatisfying(Consumer<T> assertions) {
return MockitoHamcrest.argThat(
new AssertionMatcher<T>() {
@avmohan
avmohan / mit_scheme_bindings.txt
Created March 21, 2017 17:38 — forked from bobbyno/mit_scheme_bindings.txt
MIT Scheme bindings suitable for rlwrap completion
#
#!optional
#!rest
#(
#\
#\altmode
#\backnext
#\backspace
#\call
#\linefeed