View applicationContext-mockito.xml
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> |
View LogbackListener.java
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.javaetmoi.logback; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; | |
import ch.qos.logback.classic.LoggerContext; | |
import ch.qos.logback.classic.encoder.PatternLayoutEncoder; | |
import ch.qos.logback.classic.joran.action.JMXConfiguratorAction; | |
import ch.qos.logback.classic.jul.LevelChangePropagator; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.Appender; |
View JarFileClassPathLocationScanner
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.googlecode.flyway.core.util.scanner.classpath; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.JarURLConnection; | |
import java.net.URISyntaxException; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.Enumeration; | |
import java.util.Set; |
View musicbrainz_fulltext _u2_war.sh
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
curl -XPOST 'http://es.javaetmoi.com/musicalbum/album/_search?pretty' -d ' | |
{ | |
"from": 0, | |
"size": 10, | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"fuzzy_like_this": { | |
"fields": [ |
View musicbrainz_autocomplete _u2.sh
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
curl -XPOST 'http://es.javaetmoi.com/musicalbum/album/_search?pretty' -d ' | |
{ | |
"fields": [ | |
"artist.name", | |
"id", | |
"name", | |
"year.string" | |
], | |
"query": { | |
"query_string": { |
View u2_archtung_baby.json
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
{ | |
"id": "744c7a1b-ac79-35c4-bd92-7e2c6a24c8d8", | |
"name": "Achtung Baby", | |
"year": 1991, | |
"tags": [ | |
"rock", | |
"pop rock", | |
"pop", | |
"album rock", | |
"90s" |
View select_musicbrainz_u2_album
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
SELECT | |
release_group.gid AS albumid, | |
release_group.type AS albumPrimaryTypeId, | |
release_group_primary_type.name as albumPrimaryTypeName, | |
release_name.name AS albumName, | |
artist_name.name AS artistName, | |
artist.gid AS artistGid, | |
artist.type as artisTypeId, | |
artist_type.name as artistTypeName, | |
artist.begin_date_year artistBeginDateYear, |
View TestSpringDbSetup.java
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; |
View TransactionAwareDestination.java
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; |
View pom-ear-jboss.xml
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> |
NewerOlder