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.FormServiceImplTest.java
@Test(expected = StudioException.class) public void testCopyInvalidSource() throws Exception { this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java
@Test(expected = StudioException.class) public void testCopyEmptySource() throws Exception { this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java
@Test(expected = StudioException.class) public void testCopyInvalidDestination() throws Exception { this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java
@Test(expected = StudioException.class) public void testCopyDestinationDoesNotExist() throws Exception { this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150)); }
From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java
@Test(expected = StudioException.class) public void testCopySourceExistsAtDestination() throws Exception { this.formsManagerSUT.copy(null, 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 testList() throws Exception { this.formsManagerSUT.list(new Context(), RandomStringUtils.randomAlphabetic(10), createStringListMock()); }
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testListInvalidSite() throws Exception { this.formsManagerSUT.list(new Context(), RandomStringUtils.randomAlphabetic(10), createStringListMock()); }
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testUpdate() throws Exception { this.formsManagerSUT.update(new Context(), RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock()); }
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testUpdateInvalidSite() throws Exception { this.formsManagerSUT.update(new Context(), RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock()); }
From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testUpdateInvalidFormDefinition() throws Exception { this.formsManagerSUT.update(new Context(), RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock()); }