List of usage examples for org.apache.commons.lang RandomStringUtils randomAlphabetic
public static String randomAlphabetic(int count)
Creates a random string whose length is the number of characters specified.
Characters will be chosen from the set of alphabetic characters.
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyInvalidDestination() throws Exception { this.formsManagerSUT.copy(new Context(), RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyDestinationDoesNotExist() throws Exception { this.formsManagerSUT.copy(new Context(), RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopySourceExistsAtDestination() throws Exception { this.formsManagerSUT.copy(new Context(), RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.lifecycle.LifecycleManagerImplTest.java
@Test(expected = StudioException.class) public void testGetPossibleActions() throws Exception { this.lifecycleManagerSUT.getPossibleActions(null, RandomStringUtils.randomAlphabetic(10), createItemIdListMock());//w ww . java 2s . c o m }
From source file:org.craftercms.studio.impl.lifecycle.LifecycleManagerImplTest.java
@Test(expected = StudioException.class) public void testGetPossibleActionsInvalidSite() throws Exception { this.lifecycleManagerSUT.getPossibleActions(null, RandomStringUtils.randomAlphabetic(10), createItemIdListMock());//from ww w. ja v a2s .c o m }
From source file:org.craftercms.studio.impl.lifecycle.LifecycleManagerImplTest.java
@Test(expected = StudioException.class) public void testGetPossibleActionsInvalidItemList() throws Exception { this.lifecycleManagerSUT.getPossibleActions(null, RandomStringUtils.randomAlphabetic(10), createItemIdListMock());//from w ww . j a v a2 s .c o m }
From source file:org.craftercms.studio.impl.lifecycle.LifecycleManagerImplTest.java
@Test(expected = StudioException.class) public void testGetPossibleActionsEmptyItemList() throws Exception { this.lifecycleManagerSUT.getPossibleActions(null, RandomStringUtils.randomAlphabetic(10), createItemIdListMock());/*from www. j a va2 s . c o m*/ }
From source file:org.craftercms.studio.impl.lifecycle.LifecycleManagerImplTest.java
@Test(expected = StudioException.class) public void testGetPossibleActionsItemDoesNotExist() throws Exception { this.lifecycleManagerSUT.getPossibleActions(null, RandomStringUtils.randomAlphabetic(10), createItemIdListMock());/* w ww . ja va 2 s . c om*/ }
From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java
@Test(expected = StudioException.class) public void testStart() throws Exception { this.workflowManagerSUT.start(RandomStringUtils.randomAlphabetic(10), createComments(), createItemListMock());//w ww. j av a2s . c om }
From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java
@Test(expected = StudioException.class) public void testStartInvalidPackage() throws Exception { this.workflowManagerSUT.start(RandomStringUtils.randomAlphabetic(10), createComments(), createItemListMock());/* www . j a va2s . c o m*/ }