Esempio n. 1
0
func Test_String(t *testing.T) {
	expectedString := "URI:/test, Method:GET, Contenttype:contentType, Status:418\n"
	m := model.MockConf{URI: "/test", Method: "GET", ContentType: "contentType", StatusCode: 418}
	got := m.String()
	if got != expectedString {
		t.Errorf("Expected: %v but got: %v", expectedString, got)
	}
}
Esempio n. 2
0
func (DummyFileSystem) WriteMock(c model.MockConf, content []byte, dirpath string) error {
	log.Printf("Writing mock %v to dummy fs.", c.String())
	return nil
}