|
9 | 9 | import org.eclipse.jgit.api.errors.GitAPIException; |
10 | 10 | import org.eclipse.jgit.api.errors.InvalidRemoteException; |
11 | 11 | import org.eclipse.jgit.api.errors.TransportException; |
| 12 | +import org.junit.Ignore; |
12 | 13 | import org.junit.Test; |
13 | 14 |
|
14 | 15 | import com.neuronrobotics.bowlerstudio.scripting.Build123dLoader; |
|
18 | 19 | public class Build123dTest { |
19 | 20 |
|
20 | 21 | @Test |
| 22 | + @Ignore |
21 | 23 | public void test() throws InvalidRemoteException, TransportException, GitAPIException, IOException, InterruptedException { |
22 | | -// Build123dLoader loader = new Build123dLoader(); |
23 | | -// Log.enableDebugPrint(); |
24 | | -// // create test file |
25 | | -// File testblend = new File("build123dTest.py"); |
26 | | -// if(!testblend.exists()) |
27 | | -// loader.getDefaultContents(testblend); |
28 | | -// HashMap<String,Double> params = new HashMap<String, Double>(); |
29 | | -// Build123dLoader.toSTLFile(testblend, new File("build123dTest.py.stl"),params); |
30 | | -// |
31 | | -// File gears = ScriptingEngine.fileFromGit("https://github.com/GarryBGoode/gggears.git", "examples/examples.py"); |
32 | | -// Build123dLoader.toSTLFile(gears, new File("gears.stl"),params); |
| 24 | + Build123dLoader loader = new Build123dLoader(); |
| 25 | + Log.enableDebugPrint(); |
| 26 | + // create test file |
| 27 | + File testblend = new File("build123dTest.py"); |
| 28 | + if(!testblend.exists()) |
| 29 | + loader.getDefaultContents(testblend); |
| 30 | + HashMap<String,Double> params = new HashMap<String, Double>(); |
| 31 | + Build123dLoader.toSTLFile(testblend, new File("build123dTest.py.stl"),params); |
| 32 | + |
| 33 | + File gears = ScriptingEngine.fileFromGit("https://github.com/GarryBGoode/gggears.git", "examples/examples.py"); |
| 34 | + Build123dLoader.toSTLFile(gears, new File("gears.stl"),params); |
33 | 35 |
|
34 | 36 |
|
35 | 37 | } |
|
0 commit comments