This file contains 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
<templateSet group="surround"> | |
<template name="attb" value="org.assertj.core.api.Assertions.assertThatThrownBy(() -> {$SELECTION$}).isInstanceOf($EXCEPTION$);$END$" shortcut="NONE" description="Surround with assertThatThrownBy" toReformat="true" toShortenFQNames="true" useStaticImport="true"> | |
<variable name="EXCEPTION" expression="descendantClassesEnum("Exception")" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_CODE" value="true" /> | |
</context> | |
</template> | |
<template name="ast" value="assertThat({$SELECTION$}) .$END$" shortcut="NONE" description="Surround with assertThat" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_CODE" value="true" /> |
This file contains 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
# justfile (see https://just.systems/man/en/ for docs on "just") | |
goal +MESSAGE: | |
git pull --rebase | |
git commit --allow-empty -m "Goal: {{MESSAGE}}" | |
git push | |
commit: | |
@git add . | |
-@git commit -am "wip" |
This file contains 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
package dev.ted.junit; | |
import org.junit.jupiter.api.DisplayNameGenerator; | |
import java.lang.reflect.Method; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class ReplaceCamelCase extends DisplayNameGenerator.Simple { | |
private final static Pattern CAMEL_CASE_BOUNDARY = Pattern.compile("(([A-Z]?[a-z]+)|([A-Z]))"); |
This file contains 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
## Postfix templates for use with Custom Postfix Templates plugin for IntelliJ IDEA | |
# combines .new with .var | |
.nv : new var | |
CLASS → $expr$ $var:suggestVariableName()$ = new $expr$();$END$ |
OlderNewer