greptilian logo

IRC log for #friendlyjava, 2015-02-21

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
05:24 Richard_2340985 joined ##friendlyjava
09:23 aditsu joined ##friendlyjava
09:28 HEGX64 joined ##friendlyjava
10:36 aditsu joined ##friendlyjava
10:53 Richard_2340985 joined ##friendlyjava
15:49 mr_lou joined ##friendlyjava
16:26 aditsu joined ##friendlyjava
17:33 aditsu joined ##friendlyjava
17:38 UsecAgo joined ##friendlyjava
17:49 UsecAgo In a junit  tesl i use TemporaryFile .newFile() so i would pass a not null, yet not existing File to my to be tested method in order to call createFile inside it. but it happens the temporary file to exists already... it behaves diferent than File class.
17:51 UsecAgo how can i create a File tempFile = new File(" aFile.tmp") that is non existing before calling my to-be-tested method?
18:21 pdurbin UsecAgo: you could make the filename a UUID. 763d07e8-6c94-48da-a077-a669cc16b505.png or whatever
19:16 aditsu UsecAgo: I think File.createTempFile is guaranteed to create a new file, then you can delete it before passing it to the test

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode