Class VootErrorsTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
All Implemented Interfaces:
junit.framework.Test

public class VootErrorsTest extends VootTest
Class to test the parameter passing to main service logic for the VOOT connector for Grouper.
  • Constructor Details

    • VootErrorsTest

      public VootErrorsTest()
      Default constructor to initialize VOOT test cases.
    • VootErrorsTest

      public VootErrorsTest(String name)
      Constructor with a test name as parameter.
      Parameters:
      name - the name of this test execution on the test runner.
  • Method Details

    • main

      public static void main(String[] args)
      Main method to execute all tests.
      Parameters:
      args - parameters passed to main (ignored).
    • createRegistryToTestVOOT

      protected void createRegistryToTestVOOT()
      Method to create a registry with all the required users and groups to test all VOOT calls with this test suite.
      Specified by:
      createRegistryToTestVOOT in class VootTest
    • testCallWrongBaseUrl

      public void testCallWrongBaseUrl()
      Method that logs in with Subject0 and calls the URL: /wrongurl Note: running this will delete all data in the registry!
    • testCallGroupsWrongUserUrl

      public void testCallGroupsWrongUserUrl()
      Method that logs in with Subject0 and calls the URL: /groups/wronguser Note: running this will delete all data in the registry!
    • testCallPeopleNoPeopleUrl

      public void testCallPeopleNoPeopleUrl()
      Method that logs in with Subject0 and calls the URL: /people Note: running this will delete all data in the registry!
    • testCallPeopleNoGroupUrl

      public void testCallPeopleNoGroupUrl()
      Method that logs in with Subject0 and calls the URL: /people/@me Note: running this will delete all data in the registry!
    • testCallPeopleWrongUserUrl

      public void testCallPeopleWrongUserUrl()
      Method that logs in with Subject0 and calls the URL: /people/wronguser Note: running this will delete all data in the registry!
    • testCallPeopleWrongGroupUrl

      public void testCallPeopleWrongGroupUrl()
      Method that logs in with Subject0 and calls the URL: /people/@me/wronggroup Note: running this will delete all data in the registry!
    • testCallGroupsWrongSortByParam

      public void testCallGroupsWrongSortByParam()
      Method that logs in with Subject0 and calls the URL: /groups/@me?sortBy=wrongfield Note: running this will delete all data in the registry!
    • testSortPeopleByDisplayName

      public void testSortPeopleByDisplayName()
      Method that logs in with Subject0 and calls the URL: /people/@me/testVoot:group0?orderBy=wrongfield Note: running this will delete all data in the registry!