// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.model.builder.xml.dom; import com.yahoo.vespa.model.test.utils.VespaModelCreatorWithMockPkg; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertThrows; /** * @author Einar M R Rosenvinge */ public class Bug6068056Test { private final static String HOSTS = "" + "" + " " + " node1" + " " + ""; private final static String SERVICES = "" + "" + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + "\n" + " 1\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " 1\n" + " \n" + " \n" + " " + ""; @Test void testContainerClusterCalledDocproc() { assertThrows(RuntimeException.class, () -> { VespaModelCreatorWithMockPkg creator = new VespaModelCreatorWithMockPkg(HOSTS, SERVICES); creator.create(); }); } }