This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void testMATTEO() throws InterruptedException { | |
| ReleaseId releaseId = ks.newReleaseId("org.kie", "test-delete", "1.0.0"); | |
| createAndDeployJar( ks, releaseId, createDRL("ruleA") ); | |
| ExecutorService es = Executors.newFixedThreadPool(10); | |
| List<Callable<Boolean>> list = new ArrayList<Callable<Boolean>>(); | |
| for (int i = 0; i < 6; i++) { | |
| list.add(new Callable<Boolean>() { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void testMatteo() { | |
| ParserConfiguration conf = new ParserConfiguration(); | |
| boolean doImportNameMethod = true; | |
| if (doImportNameMethod) { | |
| Class<?> clazz = CoreConfidenceTests.class; | |
| Method nameMethod = null; | |
| for (Method m : clazz.getMethods()) { | |
| if (m.getName() == "name") { | |
| nameMethod = m; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void testMacOSXClassLoaderBehavior() throws Exception { | |
| final ClassTypeResolver resolver = new ClassTypeResolver( new HashSet(), Thread.currentThread().getContextClassLoader() ); | |
| resolver.addImport("org.drools.core.test.model.*"); | |
| assertEquals( org.drools.core.test.model.Cheese.class, | |
| resolver.resolveType( "Cheese" ) ); | |
| try { | |
| resolver.resolveType( "cheese" ); // <<- on Mac/OSX throws NoClassDefFoundError which escapes the try/catch and fail the test. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * from ABPerson join ABMultiValue on ABPerson.ROWID = ABMultiValue.record_id where ABPerson.First LIKE '%name%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| REM this batch to be placed in the same directory as the PowerPoint files | |
| REM this batch requires for powerpnt.exe to be in the PATH Environment variables | |
| echo @ECHO OFF > loop.bat | |
| for %%A in (*.ppt*) DO echo powerpnt.exe /s "%%A" >> loop.bat | |
| echo loop.bat >> loop.bat | |
| loop.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| boolean drawOnce; | |
| int w = 640; | |
| int h = 480; | |
| void setup() { | |
| drawOnce = true; | |
| frame.removeNotify(); | |
| frame.setUndecorated(true); | |
| frame.setAlwaysOnTop(true); | |
| frame.addNotify(); |
NewerOlder