blob: 11b7bd42e964b2c416a92d03326154270358eda6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.derived;
import com.yahoo.searchdefinition.ApoplicationBuilder;
import com.yahoo.searchdefinition.parser.ParseException;
import org.junit.Test;
import java.io.IOException;
/**
* Test structs for streaming with another unrelated .sd present
*
* @author arnej27959
*/
public class TwoStreamingStructsTestCase extends AbstractExportingTestCase {
@Test
public void testTwoStreamingStructsExporting() throws ParseException, IOException {
String root = "src/test/derived/twostreamingstructs";
ApoplicationBuilder builder = new ApoplicationBuilder();
builder.addSchemaFile(root + "/streamingstruct.sd");
builder.addSchemaFile(root + "/whatever.sd");
builder.build();
assertCorrectDeriving(builder, builder.getSchema("streamingstruct"), root);
builder = new ApoplicationBuilder();
builder.addSchemaFile(root + "/streamingstruct.sd");
builder.addSchemaFile(root + "/whatever.sd");
builder.build();
assertCorrectDeriving(builder, builder.getSchema("streamingstruct"), root);
}
}
|