MCPcopy Create free account
hub / github.com/apache/orc / testDefaultValue

Method testDefaultValue

java/core/src/test/org/apache/orc/TestOrcConf.java:91–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

getDefaultValueMethod · 0.80
getStringMethod · 0.45
getLongMethod · 0.45
getIntMethod · 0.45
getBooleanMethod · 0.45
getDoubleMethod · 0.45

Tested by

no test coverage detected