~ubuntu-branches/ubuntu/vivid/mkgmap/vivid

« back to all changes in this revision

Viewing changes to test/uk/me/parabola/mkgmap/osmstyle/StyleImplTest.java

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2014-08-13 22:13:41 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140813221341-i9dzzjuto2o7hfh6
Tags: 0.0.0+svn3333-1
* New upstream version
  Closes: #745097
* add debian/classpath (thanks for the patch to Manfred Stock
  <manfred.stock+debian@gmail.com>)
  Closes: #741596
* d/copyright: DEP5

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
         */
66
66
        @Test(expected = FileNotFoundException.class)
67
67
        public void testBadStyleName() throws FileNotFoundException {
68
 
                //noinspection UnusedDeclaration
69
68
                Style style = new StyleImpl(STYLE_LOC, "no-such-style");
 
69
                if (style != null) style= null; // pseudo use the value to calm down FindBugs
70
70
        }
71
71
 
72
72
        /**
77
77
         */
78
78
        @Test(expected = FileNotFoundException.class)
79
79
        public void testBadStyleFileOnClasspath() throws FileNotFoundException {
80
 
                //noinspection UnusedDeclaration
81
80
                Style style = new StyleImpl("classpath:no-such-place", "default");
 
81
                if (style != null) style= null; // pseudo use the value to calm down FindBugs
82
82
        }
83
83
 
84
84
        /**
90
90
         */
91
91
        @Test(expected = FileNotFoundException.class)
92
92
        public void testBadStyleFileOnFilesystem() throws FileNotFoundException {
93
 
                //noinspection UnusedDeclaration
94
93
                Style style = new StyleImpl("/no-such-place/hopefully", "default");
 
94
                if (style != null) style= null; // pseudo use the value to calm down FindBugs
95
95
        }
96
96
 
97
97
        private void printStyle(StyleImpl in) {