package com.intuit.tank.auth;

/*
 * #%L
 * JSF Support Beans
 * %%
 * Copyright (C) 2011 - 2015 Intuit Inc.
 * %%
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * #L%
 */

import org.jboss.seam.security.Identity;
import org.jboss.seam.security.IdentityImpl;
import org.junit.*;

import static org.junit.Assert.*;

import com.intuit.tank.auth.InternalSecurity;
import com.intuit.tank.project.ColumnPreferences;
import com.intuit.tank.project.OwnableEntity;

/**
 * The class <code>InternalSecurityTest</code> contains tests for the class <code>{@link InternalSecurity}</code>.
 *
 * @generatedBy CodePro at 12/15/14 3:53 PM
 */
public class InternalSecurityTest {

    /**
     * Run the boolean loginChecker(Identity) method test.
     *
     * @throws Exception
     *
     * @generatedBy CodePro at 12/15/14 3:53 PM
     */
    @Test
    public void testLoginChecker_1()
        throws Exception {
        InternalSecurity fixture = new InternalSecurity();
        Identity identity = new IdentityImpl();

        boolean result = fixture.loginChecker(identity);

        // An unexpected exception was thrown in user code while executing this test:
        //    java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder
        //       at com.intuit.tank.auth.InternalSecurity.loginChecker(InternalSecurity.java:36)
        assertTrue(!result);
    }

    /**
     * Run the boolean loginChecker(Identity) method test.
     *
     * @throws Exception
     *
     * @generatedBy CodePro at 12/15/14 3:53 PM
     */
    @Test
    public void testLoginChecker_2()
        throws Exception {
        InternalSecurity fixture = new InternalSecurity();
        Identity identity = new IdentityImpl();

        boolean result = fixture.loginChecker(identity);

        // An unexpected exception was thrown in user code while executing this test:
        //    java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder
        //       at com.intuit.tank.auth.InternalSecurity.loginChecker(InternalSecurity.java:36)
        assertTrue(!result);
    }

    /**
     * Run the boolean ownerChecker(Identity,OwnableEntity) method test.
     *
     * @throws Exception
     *
     * @generatedBy CodePro at 12/15/14 3:53 PM
     */
    @Test
    public void testOwnerChecker_1()
        throws Exception {
        InternalSecurity fixture = new InternalSecurity();
        Identity identity = new IdentityImpl();
        OwnableEntity item = new ColumnPreferences();

        boolean result = fixture.ownerChecker(identity, item);

        // An unexpected exception was thrown in user code while executing this test:
        //    java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder
        //       at com.intuit.tank.project.ColumnPreferences.<init>(ColumnPreferences.java:61)
        assertTrue(!result);
    }

    /**
     * Run the boolean ownerChecker(Identity,OwnableEntity) method test.
     *
     * @throws Exception
     *
     * @generatedBy CodePro at 12/15/14 3:53 PM
     */
    @Test
    public void testOwnerChecker_2()
        throws Exception {
        InternalSecurity fixture = new InternalSecurity();
        Identity identity = new IdentityImpl();
        OwnableEntity item = new ColumnPreferences();

        boolean result = fixture.ownerChecker(identity, item);

        // An unexpected exception was thrown in user code while executing this test:
        //    java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder
        //       at com.intuit.tank.project.ColumnPreferences.<init>(ColumnPreferences.java:61)
        assertTrue(!result);
    }

    /**
     * Run the boolean ownerChecker(Identity,OwnableEntity) method test.
     *
     * @throws Exception
     *
     * @generatedBy CodePro at 12/15/14 3:53 PM
     */
    @Test
    public void testOwnerChecker_3()
        throws Exception {
        InternalSecurity fixture = new InternalSecurity();
        Identity identity = new IdentityImpl();
        OwnableEntity item = new ColumnPreferences();

        boolean result = fixture.ownerChecker(identity, item);

        // An unexpected exception was thrown in user code while executing this test:
        //    java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder
        //       at com.intuit.tank.project.ColumnPreferences.<init>(ColumnPreferences.java:61)
        assertTrue(!result);
    }

    /**
     * Run the boolean ownerChecker(Identity,OwnableEntity) method test.
     *
     * @throws Exception
     *
     * @generatedBy CodePro at 12/15/14 3:53 PM
     */
    @Test
    public void testOwnerChecker_4()
        throws Exception {
        InternalSecurity fixture = new InternalSecurity();
        Identity identity = new IdentityImpl();
        OwnableEntity item = new ColumnPreferences();

        boolean result = fixture.ownerChecker(identity, item);

        // An unexpected exception was thrown in user code while executing this test:
        //    java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder
        //       at com.intuit.tank.project.ColumnPreferences.<init>(ColumnPreferences.java:61)
        assertTrue(!result);
    }
}
@@ -382,67 +382,37 @@
 rg.j
-boss.seam.security.Identity;%0Aimport org.jboss.seam.security
+unit.*;%0Aimport org.picketlink
 .Ide
@@ -416,20 +416,16 @@
 Identity
-Impl
 ;%0Aimport
@@ -429,23 +429,51 @@
 ort org.
-junit.*
+picketlink.internal.DefaultIdentity
 ;%0A%0Aimpor
@@ -1175,32 +1175,39 @@
 ntity = new 
+Default
 Identity
 Impl();%0A%0A   
@@ -1186,36 +1186,32 @@
  DefaultIdentity
-Impl
 ();%0A%0A        boo
@@ -1880,32 +1880,39 @@
 ntity = new 
+Default
 Identity
 Impl();%0A%0A   
@@ -1895,28 +1895,24 @@
 aultIdentity
-Impl
 ();%0A%0A       
@@ -2599,32 +2599,39 @@
 ntity = new 
+Default
 Identity
 Impl();%0A    
@@ -2610,36 +2610,32 @@
  DefaultIdentity
-Impl
 ();%0A        Owna
@@ -3377,32 +3377,39 @@
 ntity = new 
+Default
 Identity
 Impl();%0A    
@@ -3388,36 +3388,32 @@
  DefaultIdentity
-Impl
 ();%0A        Owna
@@ -4155,32 +4155,39 @@
 ntity = new 
+Default
 Identity
 Impl();%0A    
@@ -4166,36 +4166,32 @@
  DefaultIdentity
-Impl
 ();%0A        Owna
@@ -4937,24 +4937,31 @@
 y = new 
+Default
 Identity
 Impl();%0A
@@ -4956,12 +4956,8 @@
 tity
-Impl
 ();%0A

Support Picketlink in SecurityTest