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.FormsManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testUpdateNewFormDefinition() 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 testUpdateExistingFormDefinition() 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 testRemove() throws Exception {
    this.formsManagerSUT.remove(new Context(), RandomStringUtils.randomAlphabetic(10),
            UUID.randomUUID().toString());
}

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

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

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

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

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

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

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

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