2 * Copyright (c) 2017 Cisco Systems, Inc. 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.mdsal.binding.javav2.generator.impl;
10 import org.junit.Assert;
11 import org.junit.Test;
12 import org.opendaylight.mdsal.binding.javav2.generator.util.generated.type.builder.GeneratedTypeBuilderImpl;
13 import org.opendaylight.mdsal.binding.javav2.model.api.type.builder.GeneratedTypeBuilder;
15 public class GeneratedClassLoadingStrategyTest {
18 public void loadClassTest() throws Exception {
19 final Dummy dummy = new Dummy();
20 final GeneratedTypeBuilder gtb = new GeneratedTypeBuilderImpl("test", "dummy");
21 final Class<?> loadClass = dummy.loadClass(gtb.toInstance());
22 Assert.assertNotNull(loadClass);
25 private class Dummy extends GeneratedClassLoadingStrategy {
28 public Class<?> loadClass(final String fqcn) throws ClassNotFoundException {