message: [Go] Added the UnixTime acceptance tests
diff: @@ -3,20 +3,15 @@ package integergrouptest
  import (
  "math"
  "testing"
  + "time"
  "tests/acceptancetests/utils"
  . "tests/generated/body-integer"
  + "github.com/Azure/go-autorest/autorest/date"
  chk "gopkg.in/check.v1"
  )
  -// Not yet in coverage
  -// So swagger files are not changed, code for this tests won't be generated
  -// TestGetUnixTime
  -// TestPutUnixTimeDate
  -// TestGetInvalidUnixTime
  -// TestGetNullUnixTime
  -
  func Test(t *testing.T) { chk.TestingT(t) }
  type IntegerSuite struct{}
  @@ -82,24 +77,24 @@ func (s *IntegerSuite) TestPutMin64(c *chk.C) {
  c.Assert(err, chk.IsNil)
  }
  -// func (s *IntegerSuite) TestGetUnixTime(c *chk.C) {
  -// unixTime, err := intClient.GetUnixTime()
  -// c.Assert(err, chk.IsNil)
  -// c.Assert(unixTime, chk.Equals, time.Date(2016, time.April, 13, 0, 0, 0, 0, time.UTC).Unix())
  -// }
  -
  -// func (s *IntegerSuite) TestPutUnixTimeDate(c *chk.C) {
  -// _, err := intClient.PutUnixTimeDate(time.Date(2016, time.April, 13, 0, 0, 0, 0, time.UTC).Unix())
  -// c.Assert(err, chk.IsNil)
  -// }
  -
  -// func (s *IntegerSuite) TestGetInvalidUnixTime(c *chk.C) {
  -// _, err := intClient.GetInvalidUnixTime()
  -// c.Assert(err, chk.NotNil)
  -// }
  -
  -// func (s *IntegerSuite) TestGetNullUnixTime(c *chk.C) {
  -// res, err := intClient.GetNullUnixTime()
  -// c.Assert(err, chk.IsNil)
  -// c.Assert(res.Value, chk.IsNil)
  -// }
  +func (s *IntegerSuite) TestGetUnixTime(c *chk.C) {
  + res, err := intClient.GetUnixTime()
  + c.Assert(err, chk.IsNil)
  + c.Assert(*res.Value, chk.Equals, date.UnixTime(time.Date(2016, time.April, 13, 0, 0, 0, 0, time.UTC)))
  +}
  +
  +func (s *IntegerSuite) TestPutUnixTimeDate(c *chk.C) {
  + _, err := intClient.PutUnixTimeDate(date.UnixTime(time.Date(2016, time.April, 13, 0, 0, 0, 0, time.UTC)))
  + c.Assert(err, chk.IsNil)
  +}
  +
  +func (s *IntegerSuite) TestGetInvalidUnixTime(c *chk.C) {
  + _, err := intClient.GetInvalidUnixTime()
  + c.Assert(err, chk.NotNil)
  +}
  +
  +func (s *IntegerSuite) TestGetNullUnixTime(c *chk.C) {
  + res, err := intClient.GetNullUnixTime()
  + c.Assert(err, chk.IsNil)
  + c.Assert(res.Value, chk.IsNil)
  +}
  