Package waffle.windows.auth

Examples of waffle.windows.auth.WindowsAccount


    }

    private static Map<String, WindowsAccount> getGroups(final IWindowsAccount[] groups) {
        final Map<String, WindowsAccount> groupMap = new HashMap<String, WindowsAccount>();
        for (IWindowsAccount group : groups) {
            groupMap.put(group.getFqn(), new WindowsAccount(group));
        }
        return groupMap;
    }
View Full Code Here


    }

    private static Map<String, WindowsAccount> getGroups(final IWindowsAccount[] groups) {
        final Map<String, WindowsAccount> groupMap = new HashMap<String, WindowsAccount>();
        for (IWindowsAccount group : groups) {
            groupMap.put(group.getFqn(), new WindowsAccount(group));
        }
        return groupMap;
    }
View Full Code Here

    private final MockWindowsAccount mockWindowsAccount = new MockWindowsAccount("localhost\\Administrator");
    private WindowsAccount           windowsAccount;

    @Before
    public void setUp() {
        this.windowsAccount = new WindowsAccount(this.mockWindowsAccount);
    }
View Full Code Here

        this.windowsAccount = new WindowsAccount(this.mockWindowsAccount);
    }

    @Test
    public void testEquals() {
        Assert.assertEquals(this.windowsAccount, new WindowsAccount(this.mockWindowsAccount));
        final MockWindowsAccount mockWindowsAccount2 = new MockWindowsAccount("localhost\\Administrator2");
        Assert.assertFalse(this.windowsAccount.equals(new WindowsAccount(mockWindowsAccount2)));
    }
View Full Code Here

        oos.close();
        Assertions.assertThat(out.toByteArray().length).isGreaterThan(0);
        // deserialize
        final InputStream in = new ByteArrayInputStream(out.toByteArray());
        final ObjectInputStream ois = new ObjectInputStream(in);
        final WindowsAccount copy = (WindowsAccount) ois.readObject();
        // test
        Assert.assertEquals(this.windowsAccount, copy);
        Assert.assertEquals(this.windowsAccount.getDomain(), copy.getDomain());
        Assert.assertEquals(this.windowsAccount.getFqn(), copy.getFqn());
        Assert.assertEquals(this.windowsAccount.getName(), copy.getName());
        Assert.assertEquals(this.windowsAccount.getSidString(), copy.getSidString());
    }
View Full Code Here

    private WindowsAccount group;

    @Before
    public void setUp() {
        this.group = new WindowsAccount(new MockWindowsAccount("group"));
    }
View Full Code Here

    }

    private static Map<String, WindowsAccount> getGroups(final IWindowsAccount[] groups) {
        final Map<String, WindowsAccount> groupMap = new HashMap<String, WindowsAccount>();
        for (IWindowsAccount group : groups) {
            groupMap.put(group.getFqn(), new WindowsAccount(group));
        }
        return groupMap;
    }
View Full Code Here

    private WindowsAccount group;

    @Before
    public void setUp() {
        this.group = new WindowsAccount(new MockWindowsAccount("group"));
    }
View Full Code Here

TOP

Related Classes of waffle.windows.auth.WindowsAccount

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.