Package org.encuestame.persistence.domain

Examples of org.encuestame.persistence.domain.Client


     * @param name name
     * @param project {@link Project}
     * @return {@link Client}
     */
    public Client createClient(final String name, final Project project){
        final Client client = new Client();
        client.setClientName(name);
        client.setProject(project);
        client.setClientEmail("");
        client.setClientDescription("");
        client.setClientFax("");
        client.setClientTelephone("");
        client.setClientTwitter("");
        client.setClientUrl("");
        getClientDao().saveOrUpdate(client);
        return client;
    }
View Full Code Here


         assertNotNull(questionCategory.getQuestionCategoryId());
     }

     @Test
     public void testClient(){
         final Client client = new Client();
         client.setClientDescription("description");
         client.setClientEmail("juan@encuestame.org");
         client.setClientFacebook("juancarlospicado");
         client.setClientFax("123134");
         client.setClientName("Jhon");
         client.setClientTelephone("34232423432");
         client.setClientTwitter("encuestame");
         client.setClientUrl("http://www.encuestame.org");
         client.setProject(createProject("encuestame","open source", "info", createAccount()));
     }
View Full Code Here

    /**
     * Get Client.
     */
    @Test
    public void testGetClientById(){
         final Client client = createClient("client1", project);
         final Client clientRetrieved = getClientDao().getClientById(client.getClientId());
         assertEquals("Should be", client.getClientId(), clientRetrieved.getClientId());
    }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.domain.Client

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.