summaryrefslogtreecommitdiff
path: root/gohadoopxml_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gohadoopxml_test.go')
-rw-r--r--gohadoopxml_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/gohadoopxml_test.go b/gohadoopxml_test.go
index aa81010..ab6c36e 100644
--- a/gohadoopxml_test.go
+++ b/gohadoopxml_test.go
@@ -38,3 +38,22 @@ func TestMergeConfiguration(t *testing.T) {
t.Fail()
}
}
+
+func TestGetPropertyValue(t *testing.T) {
+ var config = Configuration{
+ Properties: []Property{
+ {
+ Name: "foo",
+ Value: "bar",
+ },
+ },
+ }
+ result, err := GetPropertyValue("foo", config)
+ if err != nil || result != "bar" {
+ t.Fail()
+ }
+ result, err = GetPropertyValue("fizz", config)
+ if err == nil {
+ t.Fail()
+ }
+}