Examples of SQLWorkSpace


Examples of io.lumify.sql.model.workspace.SqlWorkspace

    }

    @Test
    public void testSetCurrentWorkspace() throws Exception {
        Session session = sessionManager.getSession();
        SqlWorkspace sqlWorkspace = new SqlWorkspace();
        sqlWorkspace.setWorkspaceId("WORKSPACE_1");
        sqlWorkspace.setDisplayTitle("workspace1");
        session.save(sqlWorkspace);

        User user = sqlUserRepository.addUser("123", "abc", null, null, new String[0]);
        sqlUserRepository.setCurrentWorkspace(user.getUserId(), sqlWorkspace.getWorkspaceId());
        SqlUser testUser = (SqlUser) sqlUserRepository.findById(user.getUserId());
        assertEquals("workspace1", testUser.getCurrentWorkspace().getDisplayTitle());
    }
View Full Code Here

Examples of io.lumify.sql.model.workspace.SqlWorkspace

        assertEquals("workspace1", testUser.getCurrentWorkspace().getDisplayTitle());
    }

    @Test(expected = LumifyException.class)
    public void testSetCurrentWorkspaceWithNonExisitingUser() {
        sqlUserRepository.setCurrentWorkspace("1", new SqlWorkspace().getWorkspaceId());
    }
View Full Code Here

Examples of org.syrup.sql.SQLWorkSpace

            sp = (WorkSpace) (new InitialContext()).lookup("syrupWorkSpace");
        }
        catch (Exception e)
        {
            logger.log(Level.INFO, "Did not get syrupWorkSpace key via JNDI. Reverted to default SQLWorkSpace implementation");
            sp = new SQLWorkSpace();
        }

        if (args.length > 0)
        {
View Full Code Here

Examples of org.syrup.sql.SQLWorkSpace

            password = args[2];
        }

        Context ctx = new InitialContext();

        SQLWorkSpace sp = new SQLWorkSpace();
        ctx.rebind("syrupWorkSpace", sp);

        com.mysql.jdbc.jdbc2.optional.MysqlDataSource ds = new com.mysql.jdbc.jdbc2.optional.MysqlDataSource();
        ds.setURL(url);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.