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

20
LINES

< > BotCompany Repo | #1018726 // Test setOneLineFileInfoField + getOneLineFileInfoField (OK)

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

Download Jar. Libraryless. Click here for Pure Java version (6109L/43K).

!7

p-exp {
  File f = programFile("bla.bla");
  setOneLineFileInfoField(f, "size", 1024);
  assertEqualsVerbose("1024", getOneLineFileInfoField(f, "size"));
  printInfos(f);
  setOneLineFileInfoField(f, "md5", "abcd...");
  assertEqualsVerbose("1024", getOneLineFileInfoField(f, "size"));
  assertEqualsVerbose("abcd...", getOneLineFileInfoField(f, "md5"));
  printInfos(f);
  setOneLineFileInfoField(f, "size", null);
  assertEqualsVerbose(null, getOneLineFileInfoField(f, "size"));
  printInfos(f);
}

svoid printInfos(File f) {
  printIndent("INFOS | ", loadTextFile(associatedInfosFile(f)));
  print();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1018726
Snippet name: Test setOneLineFileInfoField + getOneLineFileInfoField (OK)
Eternal ID of this version: #1018726/3
Text MD5: c70976e8a4b832263f6abb67824f656d
Transpilation MD5: 65e69ef63c8c15f5f2a895b6201a761a
Author: stefan
Category: javax / io
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-12 00:44:10
Source code size: 628 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 318 / 851
Version history: 2 change(s)
Referenced in: