2 * Copyright (c) 2019 Pantheon Technologies, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.data.codec.xml;
10 import java.util.Arrays;
11 import java.util.Collection;
12 import javax.xml.stream.XMLOutputFactory;
14 final class TestFactories {
16 * Non-repairing XMLOutputFactory.
18 static final XMLOutputFactory DEFAULT_OUTPUT_FACTORY = XMLOutputFactory.newFactory();
21 * Repairing XMLOuputFactory.
23 static final XMLOutputFactory REPAIRING_OUTPUT_FACTORY;
26 REPAIRING_OUTPUT_FACTORY = XMLOutputFactory.newFactory();
27 REPAIRING_OUTPUT_FACTORY.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);
30 static Collection<Object[]> junitParameters() {
31 return Arrays.asList(new Object[][] {
32 { "default", DEFAULT_OUTPUT_FACTORY },
33 { "repairing", REPAIRING_OUTPUT_FACTORY },
37 private TestFactories() {