| 38 | } |
| 39 | |
| 40 | func TestJSONUnmarshalAuthenticationGSS(t *testing.T) { |
| 41 | data := []byte(`{"Type":"AuthenticationGSS"}`) |
| 42 | want := AuthenticationGSS{} |
| 43 | |
| 44 | var got AuthenticationGSS |
| 45 | if err := json.Unmarshal(data, &got); err != nil { |
| 46 | t.Errorf("cannot JSON unmarshal %v", err) |
| 47 | } |
| 48 | if !reflect.DeepEqual(got, want) { |
| 49 | t.Error("unmarshaled AuthenticationGSS struct doesn't match expected value") |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestJSONUnmarshalAuthenticationGSSContinue(t *testing.T) { |
| 54 | data := []byte(`{"Type":"AuthenticationGSSContinue","Data":[1,2,3,4]}`) |