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.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyIncludeChildrenEmptyList() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, true); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyIncludeChildrenDestinationInvalid() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, true); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyIncludeChildrenItemsAlreadyExistOnDestination() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, true); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyExcludeChildren() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, false); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyExcludeChildrenEmptyList() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, false); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyExcludeChildrenInvalidDestinationPath() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, false); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testCopyExcludeChildrenItemsAlreadyExistOnDestination() throws Exception { List<Item> testItems = createItemListMock(); String testDstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.copy(new Context(), testItems, testDstPath, false); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testMove() throws Exception { List<Item> testItems = createItemListMock(); String dstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.move(new Context(), testItems, dstPath); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testMoveEmptyList() throws Exception { List<Item> testItems = createItemListMock(); String dstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.move(new Context(), testItems, dstPath); }
From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java
@Test(expected = NotImplementedException.class) public void testMoveInvalidDestination() throws Exception { List<Item> testItems = createItemListMock(); String dstPath = RandomStringUtils.randomAlphabetic(256); this.contentManagerSUT.move(new Context(), testItems, dstPath); }