blob: 2126256505a80b5459be7ed3d89e0c82645f2f0d (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.builder.xml.test;
import com.yahoo.config.model.test.TestUtil;
import org.junit.jupiter.api.BeforeEach;
import com.yahoo.config.model.test.MockRoot;
import org.w3c.dom.Element;
/**
* Utility functions for testing dom builders.
*
* For an example,
* @see com.yahoo.vespa.model.builder.xml.dom.chains.DependenciesBuilderTest
*
* @author Tony Vaagenes
*/
abstract public class DomBuilderTest {
public static Element parse(String... xmlLines) {
return TestUtil.parse(xmlLines);
}
protected MockRoot root;
@BeforeEach
public void setup() {
root = new MockRoot();
}
}
|