Implemented Maven jar-with-dependencies build

Added some @Override annotations
Removed buggy test cases.
refs #8
This commit is contained in:
Fabian Becker 2013-01-25 13:46:16 +00:00
parent ef36d09218
commit 44328157ea
4 changed files with 29 additions and 21 deletions

27
pom.xml
View File

@ -68,9 +68,32 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-4</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>eva2.client.EvAClient</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -178,6 +178,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
* @param obj The individual to compare to.
* @return boolean if equal true else false
*/
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
@ -272,6 +273,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
* Returns a hash code value for the object. This method is supported for
* the benefit of hashtables such as those provided by java.util.Hashtable
*/
@Override
public int hashCode() {
String t = AbstractEAIndividual.getDefaultStringRepresentation(this);
return t.hashCode();

View File

@ -103,7 +103,7 @@ public class MutateGANBit implements InterfaceMutation, java.io.Serializable {
*/
@Override
public String getStringRepresentation() {
return "GA n-Bit mutation";
return "GA n-Bit mutation (n="+this.numberOfMutations+")";
}
/**

View File

@ -75,7 +75,7 @@ public class SerializerTest {
Serializable s = null;
Serializer.storeObject(outStream, s);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
//fail("The test case is a prototype.");
}
/**
@ -88,23 +88,6 @@ public class SerializerTest {
Object expResult = null;
Object result = Serializer.loadObject(inputStream);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of loadObject method, of class Serializer.
*/
@Test
public void testLoadObject_InputStream_boolean() {
System.out.println("loadObject");
InputStream inputStream = null;
boolean casually = false;
Object expResult = null;
Object result = Serializer.loadObject(inputStream, casually);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}