Skip to content

Commit

Permalink
[scala] Fix TupleSerializerTest for corrected CaseClassSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
aljoscha committed Dec 5, 2014
1 parent 3470b37 commit 979837a
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
package org.apache.flink.api.scala.runtime

import java.util

import org.apache.flink.api.java.typeutils.TupleTypeInfoBase
import org.apache.flink.api.java.typeutils.runtime.AbstractGenericTypeSerializerTest._
import org.apache.flink.api.common.typeinfo.TypeInformation
Expand Down Expand Up @@ -154,11 +156,13 @@ class TupleSerializerTest {
val b5 = new Book(Long.MaxValue, "Winnign a prize for creative test strings", 0xBADF00)
val b6 = new Book(-2L, "Distributed Systems", 0xABCDEF0123456789L)

val list = List("A", "B", "C", "D", "E")
val ba1 = new BookAuthor(976243875L, list.asJava, "Arno Nym")
// We need to use actual java Lists here, to make them serializable by the GenericSerializer
val list = new util.LinkedList[String]()
list.addAll(List("A", "B", "C", "D", "E").asJava)
val ba1 = new BookAuthor(976243875L, list, "Arno Nym")

val list2 = List[String]()
val ba2 = new BookAuthor(987654321L, list2.asJava, "The Saurus")
val list2 = new util.LinkedList[String]()
val ba2 = new BookAuthor(987654321L, list2, "The Saurus")

val testTuples = Array(
(a, b1, o1, ba1, co1),
Expand Down

0 comments on commit 979837a

Please sign in to comment.