Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc532ea
commit 557eb40
Showing
41 changed files
with
2,131 additions
and
328 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Running in the container: | ||
|
||
The test in the module should match one of the following rules: | ||
|
||
* Classloading 1: see if all the modules can be correctly initialized | ||
* Classloading 2: see if extension points work with user classes (marshalling, listeners, CDI annotations) | ||
* Security: see if things still work when running the container with a security manager | ||
|
||
## Module separation | ||
|
||
### server-integration-commons | ||
It contains tests that can be running inside a container. | ||
|
||
### third-party-server | ||
It run the tests from `server-integration-commons` and could have specific tests for a container. | ||
|
||
### wildfly-modules | ||
It run the tests from `server-integration-commons` and could have specific tests for a wildfly-modules. | ||
|
||
## Debug | ||
To export shrinkwrap archive to a file use the following | ||
```java | ||
war.as(ZipExporter.class).exportTo(new File("/path/to/my.war"), true); | ||
``` | ||
|
This file contains 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
46 changes: 0 additions & 46 deletions
46
.../src/test/java/org/infinispan/test/integration/commons/client/AbstractHotRodClientIT.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
...rc/test/java/org/infinispan/test/integration/commons/client/AbstractMemcacheClientIT.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...n/test/integration/as/KeyValueEntity.java → ...test/integration/data/KeyValueEntity.java
This file contains 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
This file contains 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
39 changes: 39 additions & 0 deletions
39
...mons/src/test/java/org/infinispan/test/integration/embedded/AbstractInfinispanCoreIT.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.infinispan.test.integration.embedded; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.infinispan.Cache; | ||
import org.infinispan.configuration.cache.ConfigurationBuilder; | ||
import org.infinispan.configuration.global.GlobalConfigurationBuilder; | ||
import org.infinispan.manager.DefaultCacheManager; | ||
import org.infinispan.manager.EmbeddedCacheManager; | ||
import org.junit.After; | ||
import org.junit.Test; | ||
|
||
/** | ||
* Test the Infinispan AS module integration | ||
* | ||
* @author Tristan Tarrant | ||
* @since 5.2 | ||
*/ | ||
public abstract class AbstractInfinispanCoreIT { | ||
|
||
private EmbeddedCacheManager cm; | ||
|
||
@After | ||
public void cleanUp() { | ||
if (cm != null) | ||
cm.stop(); | ||
} | ||
|
||
@Test | ||
public void testCacheManager() { | ||
GlobalConfigurationBuilder gcb = new GlobalConfigurationBuilder(); | ||
gcb.defaultCacheName("default"); | ||
|
||
cm = new DefaultCacheManager(gcb.build(), new ConfigurationBuilder().build()); | ||
Cache<String, String> cache = cm.getCache(); | ||
cache.put("a", "a"); | ||
assertEquals("a", cache.get("a")); | ||
} | ||
} |
Oops, something went wrong.