OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-10-14 722a8a9409f3bbe3da0a1c77d709d68cfb0a6705
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module("Stomp Connection");
 
test("Connect to an invalid Stomp server", function() {
  
  var client = Stomp.client(TEST.badUrl);
  client.connect("foo", "bar", 
    function() {},
    function() {
      start();
    });
  stop(TEST.timeout);
});
 
test("Connect to a valid Stomp server", function() {
  
  var client = Stomp.client(TEST.url);
  client.connect(TEST.login, TEST.password, 
    function() {
      start();
    });
  stop(TEST.timeout);
});
 
test("Disconnect", function() {
  
  var client = Stomp.client(TEST.url);
  client.connect(TEST.login, TEST.password, 
    function() {
      // once connected, we disconnect
      client.disconnect(function() {
        start();
      });
    });
  stop(TEST.timeout);
});