source: java/main/src/test/java/com/framsticks/dumping/StreamTest.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 866 bytes
Line 
1package com.framsticks.dumping;
2
3public class StreamTest {
4
5        public void testLoad() {
6
7                // dispatch(new RunAt<Instance>() {
8
9                //      @Override
10                //      public void run() {
11                //              assert isActive();
12
13                //              try {
14                //                      LoadStream stream = new LoadStream(FileInstance.this.getPath("/"), new BufferedReader(new InputStreamReader(new FileInputStream(file), Encoding.getFramsticksCharset())), FileInstance.this, new Future<Path>() {
15                //                              @Override
16                //                              public void result(Path result, Exception e) {
17                //                                      if (e != null) {
18                //                                              log.error("failed to load file: {}", e);
19                //                                              fireRun(e);
20                //                                              return;
21                //                                      }
22                //                                      log.info("loaded file");
23                //                                      fireRun(null);
24                //                              }
25                //                      });
26                //                      stream.load();
27                //              } catch (IOException e) {
28                //                      log.error("io failure: {}", e);
29                //                      fireRun(e);
30                //              }
31                //      }
32
33                // });
34        }
35
36}
Note: See TracBrowser for help on using the repository browser.