Skip to content

Commit

Permalink
Add tests for MWXMLCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Apr 11, 2017
1 parent aea6260 commit 7038894
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions mwxmlcreator_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package main

import (
"github.com/flowbase/flowbase"
"testing"
)

// TestNewMWXMLCreator tests NewMWXMLCreator
func TestNewMWXMLCreator(t *testing.T) {
flowbase.InitLogDebug()

mxc := NewMWXMLCreator(true)

if mxc.InWikiPage == nil {
t.Error("InWikiPage is not initialized")
}
if mxc.OutTemplates == nil {
t.Error("OutTemplates is not initialized")
}
if mxc.OutProperties == nil {
t.Error("OutProperties is not initialized")
}
if mxc.OutPages == nil {
t.Error("OutPages is not initialized")
}
if mxc.UseTemplates != true {
t.Error("UseTemplates field is initialized wrongly")
}
}

0 comments on commit 7038894

Please sign in to comment.