Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1007527 // Test Bot Clean-Up

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (3893L/26K/87K).

!7

p {
  S botName = "CPU Monitor Bot";
  assertFalse("Please stop " + botName + " prior to using this test", hasBot(botName));
  Class bot = run(#1001405);
  assertTrue("Bot not started", hasBot(botName));
   
  for (O o : unnull((L) getOpt(bot, "record_list")))
    print("record: " + getClassName(o));
  
  cleanUp(bot);
  assertFalse("Bot not cleaned up", hasBot(botName));
  print("Bot clean-up OK!");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007527
Snippet name: Test Bot Clean-Up
Eternal ID of this version: #1007527/5
Text MD5: 51674e46fd054c52912faf965352e2c6
Transpilation MD5: 5b3f6c5a2e9fdac58caa510d43c1b2cb
Author: stefan
Category: javax / talking robots
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-26 11:28:00
Source code size: 423 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 463 / 547
Version history: 4 change(s)
Referenced in: [show references]