Created
August 28, 2017 06:08
-
-
Save qinyu/b9d3ea784a36ded8a3f045e874390dbf to your computer and use it in GitHub Desktop.
junit-guidelines-snippets
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<templates> | |
<template autoinsert="true" context="java-statements" deleted="false" description="assertThat(actual, is(expected));" enabled="true" name="atis">${import:importStatic('org.junit.Assert.*', 'org.hamcrest.Matchers.*')} | |
assertThat(${actual}, is(${expected}));</template> | |
<template autoinsert="true" context="java-members" deleted="false" description="Simple should" enabled="true" name="sho">@${testType:newType(org.junit.Test)} | |
public void should_${testName}() throws Exception { | |
}</template> | |
<template autoinsert="true" context="java-members" deleted="false" description="Should and GivenWhenThan" enabled="true" name="shogwt">@${testType:newType(org.junit.Test)} | |
public void should_${testName}() throws Exception { | |
// Given | |
${cursor} | |
// When | |
// Then | |
}</template> | |
</templates> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment