Skip to content

Commit 75df526

Browse files
committed
Add universal buffer test instead of using jdk6
1 parent 21816fb commit 75df526

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
language: scala
2-
scala:
3-
- 2.11.1
42

53
jdk:
6-
- openjdk6
74
- openjdk7
85
- oraclejdk7
96
- oraclejdk8
@@ -12,4 +9,6 @@ branches:
129
only:
1310
- /^v07.*$/
1411

15-
script: sbt ++$TRAVIS_SCALA_VERSION test
12+
script:
13+
- sbt test
14+
- sbt test -J-Dmsgpack.universal-buffer=true

msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ class MessageBufferTest extends MessagePackSpec {
1111

1212
"MessageBuffer" should {
1313

14+
"check buffer type" in {
15+
val b = MessageBuffer.newBuffer(0)
16+
info(s"MessageBuffer type: ${b.getClass.getName}")
17+
}
18+
1419
"wrap ByteBuffer considering position and remaining values" taggedAs("wrap-bb") in {
1520
val d = Array[Byte](10,11,12,13,14,15,16,17,18,19)
1621
val subset = ByteBuffer.wrap(d, 2, 2)

sonatype.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sonatypeProfileName := "org.msgpack"
22

3-
pomExtra := {
3+
pomExtra in Global := {
44
<url>http://msgpack.org/</url>
55
<licenses>
66
<license>

0 commit comments

Comments
 (0)