Example usage for org.apache.commons.lang RandomStringUtils randomAlphabetic

List of usage examples for org.apache.commons.lang RandomStringUtils randomAlphabetic

Introduction

In this page you can find the example usage for org.apache.commons.lang RandomStringUtils randomAlphabetic.

Prototype

public static String randomAlphabetic(int count) 

Source Link

Document

Creates a random string whose length is the number of characters specified.

Characters will be chosen from the set of alphabetic characters.

Usage

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testAddInvalidItemId() throws Exception {
    this.dependencyManagerSUT.add(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());/*from  w w w  . j av  a2 s .c  om*/
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testAddInvalidOperation() throws Exception {
    this.dependencyManagerSUT.add(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());/*  w ww. ja v  a 2s  .c  o m*/
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testAddEmptyList() throws Exception {
    this.dependencyManagerSUT.add(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());//  ww  w.j  av  a 2s.c  o  m
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testAddInvalidItemInsideList() throws Exception {
    this.dependencyManagerSUT.add(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());//from  w w  w . j  av  a2s. com
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testRemove() throws Exception {
    this.dependencyManagerSUT.remove(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());/* ww  w .  ja  v a 2s  .c om*/
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testRemoveItemDoesNotExist() throws Exception {
    this.dependencyManagerSUT.remove(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());//ww  w  .  j  a  v a 2s .  com
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testRemoveInvalidItemId() throws Exception {
    this.dependencyManagerSUT.remove(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());/*from  w  ww.jav  a 2 s .  com*/
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testRemoveInvalidOperation() throws Exception {
    this.dependencyManagerSUT.remove(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());/* w  w w  . j  av  a  2  s. c  o m*/
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testRemoveInvalidItemInsideList() throws Exception {
    this.dependencyManagerSUT.remove(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());//from www . j a  v a 2s.  co  m
}

From source file:org.craftercms.studio.impl.dependency.DependencyManagerImplTest.java

@Test(expected = StudioException.class)
public void testRemoveEmptyList() throws Exception {
    this.dependencyManagerSUT.remove(null, UUID.randomUUID().toString(), RandomStringUtils.randomAlphabetic(10),
            createItemListMock());/*from   w w  w.j a va  2  s  .c  o  m*/
}