blob: caa5bf1b4a9342a163c529d2465d225aedeea896 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.derived;
import com.yahoo.config.model.deploy.TestProperties;
import com.yahoo.config.model.application.provider.MockFileRegistry;
import com.yahoo.schema.ApplicationBuilder;
import org.junit.jupiter.api.Test;
/**
* Tests deriving a configuration with references from multiple .sd files
*
* @author arnej
*/
public class ReferenceFromSeveralTestCase extends AbstractExportingTestCase {
@Test
void testDocManConfigs() throws Exception {
var logger = new TestableDeployLogger();
var props = new TestProperties();
ApplicationBuilder builder = ApplicationBuilder.createFromDirectory
("src/test/derived/reference_from_several/", new MockFileRegistry(), logger, props);
derive("reference_from_several", builder, builder.getSchema("foo"));
assertCorrectConfigFiles("reference_from_several");
}
}
|