This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void verificarObjetoCustom(Map<String, Function<JsonPathResultMatchers, ResultMatcher>> expectedProperties) throws Exception { | |
ResultMatcher[] matchers = expectedProperties.entrySet() | |
.stream() | |
.map(entry -> entry.getValue().apply(jsonPath(entry.getKey()))) | |
.toArray(ResultMatcher[]::new); | |
getCurrentResultAction().andExpectAll(matchers); | |
} | |
public <T extends Record> void verificarObjeto(T objeto, Map<String, Function<T, ?>> expectedProperties) throws Exception { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/Library/KeyBindings | |
vim ~/Library/KeyBindings/DefaultKeyBinding.dict | |
Paste the following content: | |
{ | |
/* Remap Home / End keys */ | |
/* Home Button*/ | |
"\UF729" = "moveToBeginningOfLine:"; | |
/* End Button */ |