View Javadoc
1   package org.dbunit.dataset.xml;
2   
3   import java.io.InputStream;
4   import java.net.MalformedURLException;
5   
6   import org.dbunit.dataset.DataSetException;
7   import org.junit.Test;
8   
9   public class FlatXmlDataSetBuilderTest
10  {
11      private final FlatXmlDataSetBuilder sut = new FlatXmlDataSetBuilder();
12  
13      @Test(expected = DataSetException.class)
14      public void testBuild_File_$InTableName_Fails()
15              throws MalformedURLException, DataSetException
16      {
17          String fileName = "/xml/flatXmlDataSet$Test.xml";
18          InputStream inputStream = getClass().getResourceAsStream(fileName);
19          sut.build(inputStream);
20      }
21  }