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.dependency.DependencyManagerImplTest.java
@Test(expected = StudioException.class) public void testUpdate() throws Exception { this.dependencyManagerSUT.update(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10), createItemListMock());/* w w w . j a v a 2s .c o m*/ }
From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java
@Test(expected = StudioException.class) public void testUpdateItemDoesNotExist() throws Exception { this.dependencyManagerSUT.update(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10), createItemListMock());//from www. j a va 2s .co m }
From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java
@Test(expected = StudioException.class) public void testUpdateInvalidItemId() throws Exception { this.dependencyManagerSUT.update(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10), createItemListMock());/* ww w . j av a 2 s .co m*/ }
From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java
@Test(expected = StudioException.class) public void testUpdateInvalidOperation() throws Exception { this.dependencyManagerSUT.update(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10), createItemListMock());//from w w w . ja v a 2 s .c o m }
From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java
@Test(expected = StudioException.class) public void testUpdateEmptyList() throws Exception { this.dependencyManagerSUT.update(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10), createItemListMock());// w w w .ja va2s .c o m }
From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java
@Test(expected = StudioException.class) public void testUpdateInvalidItemInsideList() throws Exception { this.dependencyManagerSUT.update(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10), createItemListMock());/*from w w w . j ava 2s .c o m*/ }
From source file:org.craftercms.studio.impl.deployment.DeploymentManagerImplTest.java
@Test(expected = StudioException.class) public void testHistory() throws Exception { this.deploymentManagerSUT.history(null, RandomStringUtils.randomAlphabetic(10), createStringListMock()); }
From source file:org.craftercms.studio.impl.deployment.DeploymentManagerImplTest.java
@Test(expected = StudioException.class) public void testHistoryInvalidSite() throws Exception { this.deploymentManagerSUT.history(null, RandomStringUtils.randomAlphabetic(10), createStringListMock()); }
From source file:org.craftercms.studio.impl.deployment.DeploymentManagerImplTest.java
@Test(expected = StudioException.class) public void testChannels() throws Exception { this.deploymentManagerSUT.channels(null, RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(10)); }
From source file:org.craftercms.studio.impl.deployment.DeploymentManagerImplTest.java
@Test(expected = StudioException.class) public void testChannelsInvalidSite() throws Exception { this.deploymentManagerSUT.channels(null, RandomStringUtils.randomAlphabetic(10), RandomStringUtils.randomAlphabetic(10)); }