com.atlassian.plugin.descriptors
Class TestModuleDescriptorsHashCodeBuilder

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.descriptors.TestModuleDescriptorsHashCodeBuilder
All Implemented Interfaces:
junit.framework.Test

public class TestModuleDescriptorsHashCodeBuilder
extends junit.framework.TestCase

Responsible for testing that the hashCode contract defined by ModuleDescriptor.hashCode() is fulfilled by the ModuleDescriptors.HashCodeBuilder class.

Since:
2.8.0

Constructor Summary
TestModuleDescriptorsHashCodeBuilder()
           
 
Method Summary
 void testTheHashCodeOfADescriptorWithANonNullCompleteKeyIsEqualToTheHashCodeOfTheCompleteKey()
           
 void testTheHashCodeOfADescriptorWithANullCompleteKeyShouldBeZero()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Constructor Detail

TestModuleDescriptorsHashCodeBuilder

public TestModuleDescriptorsHashCodeBuilder()
Method Detail

testTheHashCodeOfADescriptorWithANullCompleteKeyShouldBeZero

public void testTheHashCodeOfADescriptorWithANullCompleteKeyShouldBeZero()

testTheHashCodeOfADescriptorWithANonNullCompleteKeyIsEqualToTheHashCodeOfTheCompleteKey

public void testTheHashCodeOfADescriptorWithANonNullCompleteKeyIsEqualToTheHashCodeOfTheCompleteKey()


Copyright © 2011 Atlassian. All Rights Reserved.