Skip to content

Commit

Permalink
Create test data under target.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Nov 14, 2014
1 parent bca32a2 commit cf07b0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ch19-spark/src/test/scala/RDDCreationTest.scala
Expand Up @@ -76,7 +76,7 @@ class RDDCreationTest extends FunSuite with BeforeAndAfterEach {
}

test("avro generic data file") {
val inputPath = "data.avro"
val inputPath = "target/data.avro"
val avroSchema = new Schema.Parser().parse("{\n \"type\": \"record\",\n \"name\": \"StringPair\",\n \"doc\": \"A pair of strings.\",\n \"fields\": [\n {\"name\": \"left\", \"type\": \"string\"},\n {\"name\": \"right\", \"type\": \"string\"}\n ]\n}")

val datum: GenericRecord = new GenericData.Record(avroSchema)
Expand Down Expand Up @@ -108,7 +108,7 @@ class RDDCreationTest extends FunSuite with BeforeAndAfterEach {
}

test("avro specific data file") {
val inputPath = "data.avro"
val inputPath = "target/data.avro"

val datum = new WeatherRecord(2000, 10, "id")

Expand All @@ -135,7 +135,7 @@ class RDDCreationTest extends FunSuite with BeforeAndAfterEach {
}

test("avro reflect data file") {
val inputPath = "data.avro"
val inputPath = "target/data.avro"

val datum: ReflectWeatherRecord = new ReflectWeatherRecord(2000, 10, "id")

Expand Down

0 comments on commit cf07b0e

Please sign in to comment.