JaxbXjcOsgiTest.java

/*
 * Copyright (c) 2014, 2021 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package jaxb.osgi_test.xjc;

import jaxb.osgi_test.JaxbOsgiTest;
import org.osgi.framework.Bundle;

/**
 * Testing jaxb-xjc osgi jar
 *
 * @author yaroska
 */
public class JaxbXjcOsgiTest extends JaxbOsgiTest {
    private static final String BUNDLE = "com.sun.xml.bind.jaxb-xjc";

    private Bundle bundle;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        bundle = getBundle(BUNDLE);
    }

    public void testBundle() {
        checkBundle(bundle);
    }

    public void testCodeWriter() {
        checkClassInBundle("com.sun.codemodel.CodeWriter", bundle);
    }

    public void testDriver() {
        checkClassInBundle("com.sun.tools.xjc.Driver", bundle);
    }

    public void testXsomParser() {
        checkClassInBundle("com.sun.xml.xsom.parser.XSOMParser", bundle);
    }
}