def test_conn_1p_0120
@conn.disconnect
cha = get_conn_headers()
cha["heart-beat"] = "0,0"
conn = nil
conn = Stomp::Connection.open(user, passcode, host, port, false, 5, cha)
bad_data = [
"\x41\xc2\xc3\xb1\x42",
"\xed\xa0\x80",
"\xed\xad\xbf",
"\xed\xae\x80",
"\xed\xaf\xbf",
"\xed\xb0\x80",
"\xed\xbe\x80",
"\xed\xbf\xbf",
"\xc0",
"\xc1",
"\xf5","\xf6","\xf7","\xf8","\xf9","\xfa","\xfb","\xfc",
"\xfd","\xfe","\xff",
"\xc0\x80",
"\xc1\x80",
"\xc0\x30",
"\xc1\x30",
"\xe0\x80\x80",
"\xf0\x80\x80\x80",
]
bad_data.each do |string|
assert !conn.valid_utf8?(string), "bad unicode specs 01: #{string}"
end
conn.disconnect
end