Fix license header violations in config-persister-file-xml-adapter
[controller.git] / opendaylight / config / config-persister-file-xml-adapter / src / test / java / org / opendaylight / controller / config / persist / storage / file / xml / model / ConfigTest.java
1 /*
2  * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.config.persist.storage.file.xml.model;
10
11 import java.io.File;
12 import org.junit.Test;
13
14 public class ConfigTest {
15
16     @Test(expected = IllegalArgumentException.class)
17     public void testFromXml() throws Exception {
18         Config.fromXml(new File(getClass().getResource("/illegalSnapshot.xml").getFile()));
19     }
20 }