Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
Rename KernelLifeCycle -> KernelRule
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Jun 25, 2013
1 parent 64c0d9c commit 897c394
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.exoplatform.component.test.ConfigurationUnit;
import org.exoplatform.component.test.ConfiguredBy;
import org.exoplatform.component.test.ContainerScope;
import org.exoplatform.component.test.KernelLifeCycle;
import org.exoplatform.component.test.KernelRule;
import org.junit.ClassRule;

/**
Expand All @@ -35,5 +35,5 @@
@ConfigurationUnit(scope = ContainerScope.PORTAL, path = "org/exoplatform/services/organization/TestOrganizationService-configuration.xml") })
public class TestOrganizationService extends AbstractTestOrganizationService {
@ClassRule
public static KernelLifeCycle kernel = new KernelLifeCycle();
public static KernelRule kernel = new KernelRule();
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.exoplatform.component.test.ConfigurationUnit;
import org.exoplatform.component.test.ConfiguredBy;
import org.exoplatform.component.test.ContainerScope;
import org.exoplatform.component.test.KernelLifeCycle;
import org.exoplatform.component.test.KernelRule;
import org.junit.ClassRule;

/**
Expand All @@ -36,5 +36,5 @@
@ConfigurationUnit(scope = ContainerScope.PORTAL, path = "org/exoplatform/services/organization/TestOrganizationService-configuration.xml") })
public class TestOrganizationServiceJTA extends AbstractTestOrganizationService {
@ClassRule
public static KernelLifeCycle kernel = new KernelLifeCycle();
public static KernelRule kernel = new KernelRule();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

/**
* <p>
* Declares a set a configuratin for kernel based tests. Such annotation is used when a {@link KernelLifeCycle} JUnit rule is
* Declares a set a configuratin for kernel based tests. Such annotation is used when a {@link KernelRule} JUnit rule is
* declared in the test or when a class extends the {@link AbstractKernelTest}.
* </p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* <p>
* The kernel life cycle is a JUnit rule for simplifying the life cycle of eXo kernel in unit tests. The kernel configuration
* The kernel rule is a JUnit rule for simplifying the life cycle of eXo kernel in unit tests. The kernel configuration
* uses annotation for declaring the kernel configuration files to load. The rule can either be scoped at the class level or at
* the test level depending on the life cycle of the kernel required for the tested class.
* </p>
Expand All @@ -40,7 +40,7 @@
* public class ClassScopedTestCase {
*
* &#064;ClassRule
* public static final KernelLifeCycle kernel = new KernelLifeCycle();
* public static final KernelRule kernel = new KernelRule();
* private PortalContainer container;
*
* &#064;Test
Expand All @@ -63,7 +63,7 @@
* public class MethodScopedTestCase {
*
* &#064;Rule
* public final KernelLifeCycle kernel = new KernelLifeCycle();
* public final KernelRule kernel = new KernelRule();
* private PortalContainer container;
*
* &#064;Test
Expand All @@ -82,7 +82,7 @@
*
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
*/
public class KernelLifeCycle implements TestRule {
public class KernelRule implements TestRule {

/** . */
private KernelBootstrap bootstrap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class KernelRuleClassScopedTestCase {

@ClassRule
public static KernelLifeCycle kernel = new KernelLifeCycle();
public static KernelRule kernel = new KernelRule();

/** . */
private PortalContainer container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class KernelRuleTestCase {

@ClassRule
public static KernelLifeCycle kernel = new KernelLifeCycle();
public static KernelRule kernel = new KernelRule();

/** . */
private BootstrapTestCase delegate = new BootstrapTestCase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class KernelRuleTestScopedTestCase {

@Rule
public KernelLifeCycle kernel = new KernelLifeCycle();
public KernelRule kernel = new KernelRule();

/** . */
private PortalContainer container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.exoplatform.component.test.ConfigurationUnit;
import org.exoplatform.component.test.ConfiguredBy;
import org.exoplatform.component.test.ContainerScope;
import org.exoplatform.component.test.KernelLifeCycle;
import org.exoplatform.component.test.KernelRule;
import org.exoplatform.container.PortalContainer;
import org.exoplatform.services.jcr.RepositoryService;
import org.exoplatform.services.jcr.core.ManageableRepository;
Expand All @@ -40,7 +40,7 @@
public class BootstrapTestCase {

@ClassRule
public static KernelLifeCycle kernel = new KernelLifeCycle();
public static KernelRule kernel = new KernelRule();

@Test
public void testWorkspace() throws Exception {
Expand Down

0 comments on commit 897c394

Please sign in to comment.