net.firstpartners.rp.mid.global
Class KnowledgeManagerTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.firstpartners.rp.BaseTestCase
              extended by net.firstpartners.rp.mid.global.KnowledgeManagerTests
All Implemented Interfaces:
junit.framework.Test, IBaseCase

public class KnowledgeManagerTests
extends BaseTestCase

KnowledgeManager Tests

Version:
1.1
Author:
Firstpartners.net

Field Summary
private static int DEFAULT_ADD_WAIT_TIME
           
private  KnowledgeSphereManager manager
           
 
Fields inherited from class net.firstpartners.rp.BaseTestCase
DEFAULT_CONTEXT_CONFIG_LOCATION
 
Constructor Summary
KnowledgeManagerTests()
           
 
Method Summary
private  void base_AddSearch(java.lang.String location, java.lang.String query)
          Test adding a location to the system and then search for a specific query
 void onSetup()
          Set-up for the test after loading the application context by the base testcase
 void test_FirstPartnersPage()
          Add the FirstPartners page firstpartners.net to the system and then search for "FirstPartners.Net" word
 void test_GoogleSearch_FirstParteners()
          Add the google search for www.firstPartners.net to the system and then search for "FirstPartners" word
 void test_GoogleSearch_RedPiranha()
          Add the google search for www.red-piranha.com to the system and then search for "FirstPartners" word
 void test_GoogleStartPage()
          Add the google start page www.google.ie to the system and then search for "google" word
 void test_MicrosoftPage()
          Add the microsoft start page www.microsoft.com to the system and then search for "microsoft" word
 void test_SunPage()
          Add the sun page www.sun.com to the system and then search for "sun" word
 void testInit()
          Test the initialization of the system
 
Methods inherited from class net.firstpartners.rp.BaseTestCase
getContexDir, getContext, getContextConfigLocation, setUp
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_ADD_WAIT_TIME

private static final int DEFAULT_ADD_WAIT_TIME
See Also:
Constant Field Values

manager

private KnowledgeSphereManager manager
Constructor Detail

KnowledgeManagerTests

public KnowledgeManagerTests()
Method Detail

onSetup

public void onSetup()
             throws java.lang.Exception
Set-up for the test after loading the application context by the base testcase

Throws:
java.lang.Exception - Exception in set-up the test case

testInit

public void testInit()
Test the initialization of the system


base_AddSearch

private void base_AddSearch(java.lang.String location,
                            java.lang.String query)
Test adding a location to the system and then search for a specific query

Parameters:
location - Location to add to the system
query - Query to search for

test_GoogleStartPage

public void test_GoogleStartPage()
Add the google start page www.google.ie to the system and then search for "google" word


test_MicrosoftPage

public void test_MicrosoftPage()
Add the microsoft start page www.microsoft.com to the system and then search for "microsoft" word


test_SunPage

public void test_SunPage()
Add the sun page www.sun.com to the system and then search for "sun" word


test_FirstPartnersPage

public void test_FirstPartnersPage()
Add the FirstPartners page firstpartners.net to the system and then search for "FirstPartners.Net" word


test_GoogleSearch_FirstParteners

public void test_GoogleSearch_FirstParteners()
Add the google search for www.firstPartners.net to the system and then search for "FirstPartners" word


test_GoogleSearch_RedPiranha

public void test_GoogleSearch_RedPiranha()
Add the google search for www.red-piranha.com to the system and then search for "FirstPartners" word