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.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testUpdateInvalidSite() throws Exception {
    this.formsManagerSUT.update(null, RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testUpdateInvalidFormDefinition() throws Exception {
    this.formsManagerSUT.update(null, RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testUpdateNewFormDefinition() throws Exception {
    this.formsManagerSUT.update(null, RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testUpdateExistingFormDefinition() throws Exception {
    this.formsManagerSUT.update(null, RandomStringUtils.randomAlphabetic(10), createFormDefinitionMock());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testRemove() throws Exception {
    this.formsManagerSUT.remove(null, RandomStringUtils.randomAlphabetic(10), UUID.randomUUID().toString());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testRemoveInvalidSite() throws Exception {
    this.formsManagerSUT.remove(null, RandomStringUtils.randomAlphabetic(10), UUID.randomUUID().toString());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testRemoveInvalidFormId() throws Exception {
    this.formsManagerSUT.remove(null, RandomStringUtils.randomAlphabetic(10), UUID.randomUUID().toString());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testRemoveFormDoesNotExist() throws Exception {
    this.formsManagerSUT.remove(null, RandomStringUtils.randomAlphabetic(10), UUID.randomUUID().toString());
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testCopy() 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 testCopyInvalidSite() throws Exception {
    this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150));
}