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
#! /usr/bin/env python3 | |
""" | |
Setup ngrok for local development with WordPress when used with wp-env. Follows instructions from | |
https://ngrok.com/docs/using-ngrok-with/wordpress/ | |
Notes | |
----- |
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 com.yourpackage | |
import java.lang.reflect.Field | |
import java.lang.reflect.Modifier | |
import javax.persistence.* | |
import kotlin.jvm.internal.Reflection | |
import kotlin.reflect.KCallable | |
import org.hibernate.annotations.Subselect | |
import org.junit.Assert.assertFalse | |
import org.junit.Test |
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
<plugin> | |
<artifactId>kotlin-maven-plugin</artifactId> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<version>${kotlin.version}</version> | |
<configuration> | |
<compilerPlugins> | |
<plugin>all-open</plugin> | |
<plugin>jpa</plugin> | |
</compilerPlugins> |
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
@Entity | |
class Customer( | |
@Id | |
var id: Int, | |
@Basic | |
var name: String | |
) |
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
@Entity | |
class Customer { | |
@Id | |
var id: Int = 0 | |
@Basic(optional=false) | |
var name: String? = null | |
} |
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
@Entity | |
public class Customer { | |
@Id | |
public int id; | |
@Basic(optional=false) | |
public String name; | |
public Customer() { |
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
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>${jacoco.version}</version> | |
<executions> | |
<!-- Generate reports from coverage generated during integration tests. Note that this maven plugin | |
does NOT generate the coverage - that is done by adding the Jacoco agent to the Docker container --> | |
<execution> | |
<goals> | |
<goal>report-integration</goal> |
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
<!-- Make the jacoco agent Jar available to our test Docker containers by copying it to the | |
docker shared dir. --> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>process-resources</phase> | |
<configuration> | |
<tasks> | |
<delete dir="${project.build.directory}/jacoco-it" failonerror="false"/> |
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
<build> | |
<plugins> | |
... | |
<!-- Adds properties containing the path of Jar files --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> |
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
<dependencies> | |
... | |
<!-- Required so we can dynamically inject the Jacoco jar into our container --> | |
<dependency> | |
<groupId>org.jacoco</groupId> | |
<artifactId>org.jacoco.agent</artifactId> | |
<classifier>runtime</classifier> | |
<version>0.8.4</version> | |
<scope>test</scope> | |
</dependency> |
NewerOlder