Skip to content

Instantly share code, notes, and snippets.

View prule's full-sized avatar

Paul Rule prule

View GitHub Profile
@prule
prule / build.gradle
Created April 20, 2017 10:45
Serenity gradle build file
buildscript {
ext {
cucumberVersion = '1.2.5'
junitVersion = '4.12'
seleniumVersion = '2.53.1'
serenityVersion = '1.2.5-rc.6'
serenityCucumberVersion = '1.1.28'
}
repositories {
@prule
prule / Junit5SpringBootTestTemplate.java
Created July 11, 2019 11:59
Template for a JUnit 5 / Spring boot integration test
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;
import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest
@prule
prule / IntellijJunit5SpringBootTestTemplate.java
Created July 11, 2019 12:00
Intellij IDEA Template for a JUnit 5 / Spring boot integration test
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;