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.javametmoi.test.dbsetup; | |
import static com.ninja_squad.dbsetup.Operations.insertInto; | |
import static com.ninja_squad.dbsetup.Operations.sequenceOf; | |
import static org.junit.Assert.assertEquals; | |
import java.sql.SQLException; | |
import javax.sql.DataSource; |
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.javametmoi.test.dbsetup; | |
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import javax.sql.DataSource; |
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
<bean id="myService" class="org.springframework.aop.framework.ProxyFactoryBean"> | |
<property name="target"> | |
<bean class="org.mockito.Mockito" factory-method="mock"> | |
<constructor-arg | |
value="com.javaetmoi.IService" /> | |
</bean> | |
</property> | |
<property name="proxyInterfaces"> | |
<value>com.javaetmoi.IService</value> | |
</property> |
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
<!-- Generation du classPath dans le Manifest de l'EAR, paramétrage du classloader --> | |
<!-- et recopie centralisée des JARs des WARs dans le répertoire lib --> | |
<plugin> | |
<artifactId>maven-ear-plugin</artifactId> | |
<configuration> | |
<version>5</version> | |
<defaultJavaBundleDir>lib/</defaultJavaBundleDir> | |
<applicationXml>${project.build.directory}/application.xml</applicationXml> | |
<archive> | |
<manifest> |
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"?> | |
<!DOCTYPE jboss-app PUBLIC | |
"-//JBoss//DTD Java EE Application 5.0//EN" | |
"http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd"> | |
<jboss-app> | |
<loader-repository>com.javaetmoi:archive=monapplication-ear | |
<loader-repository-config>java2ParentDelegation=false</loader-repository-config> | |
</loader-repository> | |
</jboss-app> |
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> | |
<!-- Filtres les fichiers de ressources --> | |
<resources> | |
<resource> | |
<directory>target/generated-resources</directory> | |
<!-- Utilise les délimiteurs par défaut ${*} et @ --> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
<filters> |
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
import java.util.HashSet; | |
import java.util.Set; | |
import org.apache.jmeter.extractor.RegexExtractor; | |
import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; | |
import org.apache.jmeter.testelement.TestElement; | |
import com.javaetmoi.tests.jmeter.TestElementProcessor; | |
import com.javaetmoi.tests.jmeter.TestElementTree; |
NewerOlder