Skip to content

Instantly share code, notes, and snippets.

View connollyst's full-sized avatar

Sean Connolly connollyst

View GitHub Profile
@connollyst
connollyst / ReactorEventBusCallbackTests.java
Last active June 30, 2016 20:10
projectreactor.io - junit tests identifying EventBus callback issues
import static org.junit.Assert.assertTrue;
import static reactor.bus.selector.Selectors.$;
import org.junit.Test;
import reactor.Environment;
import reactor.bus.Event;
import reactor.bus.EventBus;
/**
@connollyst
connollyst / pom.xml
Last active August 29, 2015 13:58
pom for the jackson-module-scala bug report
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>jackson-module-scala-bug</artifactId>
<version>0.0.5-SNAPSHOT</version>
<packaging>jar</packaging>
@connollyst
connollyst / JacksonBugTest.scala
Created April 3, 2014 17:32
A ScalaTest exemplifying a bug in jackson-module-scala
package example
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping._
import com.fasterxml.jackson.databind.ObjectMapper._
import com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder
import com.fasterxml.jackson.databind.{JavaType, ObjectMapper}
import com.fasterxml.jackson.module.scala.DefaultScalaModule
import com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper
import org.junit.runner.RunWith