()
| 89 | } |
| 90 | |
| 91 | @Test |
| 92 | public void testDefaultValue() { |
| 93 | Properties tableProperties = new Properties(); |
| 94 | Configuration conf = new Configuration(); |
| 95 | |
| 96 | for (OrcConf orcConf : OrcConf.values()) { |
| 97 | if (orcConf.getDefaultValue() instanceof String) { |
| 98 | assertEquals(orcConf.getString(tableProperties, conf), orcConf.getDefaultValue()); |
| 99 | } |
| 100 | if (orcConf.getDefaultValue() instanceof Long) { |
| 101 | assertEquals(orcConf.getLong(tableProperties, conf), orcConf.getDefaultValue()); |
| 102 | } |
| 103 | if (orcConf.getDefaultValue() instanceof Integer) { |
| 104 | assertEquals(orcConf.getInt(tableProperties, conf), orcConf.getDefaultValue()); |
| 105 | } |
| 106 | if (orcConf.getDefaultValue() instanceof Boolean) { |
| 107 | assertEquals(orcConf.getBoolean(tableProperties, conf), orcConf.getDefaultValue()); |
| 108 | } |
| 109 | if (orcConf.getDefaultValue() instanceof Double) { |
| 110 | assertEquals(orcConf.getDouble(tableProperties, conf), orcConf.getDefaultValue()); |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | @Test |
| 116 | public void testSetValue() { |
nothing calls this directly
no test coverage detected