[jboss-svn-commits] JBL Code SVN: r21670 - in labs/jbossrules/trunk/drools-server/src: test/java/org/drools and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Aug 21 23:24:12 EDT 2008


Author: michael.neale at jboss.com
Date: 2008-08-21 23:24:12 -0400 (Thu, 21 Aug 2008)
New Revision: 21670

Added:
   labs/jbossrules/trunk/drools-server/src/main/java/org/drools/Person.java
Removed:
   labs/jbossrules/trunk/drools-server/src/test/java/org/drools/Person.java
Log:
had the class in the test tree not the main tree

Copied: labs/jbossrules/trunk/drools-server/src/main/java/org/drools/Person.java (from rev 21668, labs/jbossrules/trunk/drools-server/src/test/java/org/drools/Person.java)
===================================================================
--- labs/jbossrules/trunk/drools-server/src/main/java/org/drools/Person.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-server/src/main/java/org/drools/Person.java	2008-08-22 03:24:12 UTC (rev 21670)
@@ -0,0 +1,233 @@
+package org.drools;
+/*
+ * Copyright 2005 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+
+public class Person
+    implements
+    Serializable{
+    /**
+     *
+     */
+    private static final long serialVersionUID = 400L;
+    private String            name;
+    private String            likes;
+    private int               age;
+    private BigDecimal        bigDecimal;
+    private BigInteger        bigInteger;
+    private String            hair;
+
+    private char              sex;
+
+    private boolean           alive;
+
+    private String            status;
+
+
+    public Person() {
+
+    }
+
+    public Person(final String name) {
+        this( name,
+              "",
+              0 );
+    }
+
+    public Person(final String name,
+                  final String likes) {
+        this( name,
+              likes,
+              0 );
+    }
+
+    public Person(final String name,
+                  final String likes,
+                  final int age) {
+        this.name = name;
+        this.likes = likes;
+        this.age = age;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getStatus()
+     */
+    public String getStatus() {
+        return this.status;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#setStatus(java.lang.String)
+     */
+    public void setStatus(final String status) {
+        this.status = status;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getLikes()
+     */
+    public String getLikes() {
+        return this.likes;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getName()
+     */
+    public String getName() {
+        return this.name;
+    }
+
+    public void setName(final String name) {
+        this.name = name;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getAge()
+     */
+    public int getAge() {
+        return this.age;
+    }
+
+    public void setAge(final int age) {
+        this.age = age;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#isAlive()
+     */
+    public boolean isAlive() {
+        return this.alive;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#setAlive(boolean)
+     */
+    public void setAlive(final boolean alive) {
+        this.alive = alive;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getSex()
+     */
+    public char getSex() {
+        return this.sex;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#setSex(char)
+     */
+    public void setSex(final char sex) {
+        this.sex = sex;
+    }
+
+    public String getHair() {
+        return this.hair;
+    }
+
+    public void setHair(final String hair) {
+        this.hair = hair;
+    }
+
+    public String toString() {
+        return "[Person name='" + this.name + "']";
+    }
+
+    /**
+     * @inheritDoc
+     */
+    public int hashCode() {
+        final int PRIME = 31;
+        int result = 1;
+        result = PRIME * result + this.age;
+        result = PRIME * result + (this.alive ? 1231 : 1237);
+        result = PRIME * result + ((this.name == null) ? 0 : this.name.hashCode());
+        result = PRIME * result + this.sex;
+        return result;
+    }
+
+    /**
+     * @inheritDoc
+     */
+    public boolean equals(final Object obj) {
+        if ( this == obj ) {
+            return true;
+        }
+        if ( obj == null ) {
+            return false;
+        }
+        if ( getClass() != obj.getClass() ) {
+            return false;
+        }
+        final Person other = (Person) obj;
+        if ( this.age != other.age ) {
+            return false;
+        }
+        if ( this.alive != other.alive ) {
+            return false;
+        }
+        if ( this.name == null ) {
+            if ( other.name != null ) {
+                return false;
+            }
+        } else if ( !this.name.equals( other.name ) ) {
+            return false;
+        }
+        if ( this.sex != other.sex ) {
+            return false;
+        }
+        return true;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getBigDecimal()
+     */
+    public BigDecimal getBigDecimal() {
+        return this.bigDecimal;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#setBigDecimal(java.math.BigDecimal)
+     */
+    public void setBigDecimal(final BigDecimal bigDecimal) {
+        this.bigDecimal = bigDecimal;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#getBigInteger()
+     */
+    public BigInteger getBigInteger() {
+        return this.bigInteger;
+    }
+
+    /* (non-Javadoc)
+     * @see org.drools.PersonInterface#setBigInteger(java.math.BigInteger)
+     */
+    public void setBigInteger(final BigInteger bigInteger) {
+        this.bigInteger = bigInteger;
+    }
+
+    public void setLikes(final String likes) {
+        this.likes = likes;
+    }
+
+
+}
\ No newline at end of file

Deleted: labs/jbossrules/trunk/drools-server/src/test/java/org/drools/Person.java
===================================================================
--- labs/jbossrules/trunk/drools-server/src/test/java/org/drools/Person.java	2008-08-22 01:05:47 UTC (rev 21669)
+++ labs/jbossrules/trunk/drools-server/src/test/java/org/drools/Person.java	2008-08-22 03:24:12 UTC (rev 21670)
@@ -1,233 +0,0 @@
-package org.drools;
-/*
- * Copyright 2005 JBoss Inc
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.math.BigInteger;
-
-public class Person
-    implements
-    Serializable{
-    /**
-     *
-     */
-    private static final long serialVersionUID = 400L;
-    private String            name;
-    private String            likes;
-    private int               age;
-    private BigDecimal        bigDecimal;
-    private BigInteger        bigInteger;
-    private String            hair;
-
-    private char              sex;
-
-    private boolean           alive;
-
-    private String            status;
-
-
-    public Person() {
-
-    }
-
-    public Person(final String name) {
-        this( name,
-              "",
-              0 );
-    }
-
-    public Person(final String name,
-                  final String likes) {
-        this( name,
-              likes,
-              0 );
-    }
-
-    public Person(final String name,
-                  final String likes,
-                  final int age) {
-        this.name = name;
-        this.likes = likes;
-        this.age = age;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getStatus()
-     */
-    public String getStatus() {
-        return this.status;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#setStatus(java.lang.String)
-     */
-    public void setStatus(final String status) {
-        this.status = status;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getLikes()
-     */
-    public String getLikes() {
-        return this.likes;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getName()
-     */
-    public String getName() {
-        return this.name;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getAge()
-     */
-    public int getAge() {
-        return this.age;
-    }
-
-    public void setAge(final int age) {
-        this.age = age;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#isAlive()
-     */
-    public boolean isAlive() {
-        return this.alive;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#setAlive(boolean)
-     */
-    public void setAlive(final boolean alive) {
-        this.alive = alive;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getSex()
-     */
-    public char getSex() {
-        return this.sex;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#setSex(char)
-     */
-    public void setSex(final char sex) {
-        this.sex = sex;
-    }
-
-    public String getHair() {
-        return this.hair;
-    }
-
-    public void setHair(final String hair) {
-        this.hair = hair;
-    }
-
-    public String toString() {
-        return "[Person name='" + this.name + "']";
-    }
-
-    /**
-     * @inheritDoc
-     */
-    public int hashCode() {
-        final int PRIME = 31;
-        int result = 1;
-        result = PRIME * result + this.age;
-        result = PRIME * result + (this.alive ? 1231 : 1237);
-        result = PRIME * result + ((this.name == null) ? 0 : this.name.hashCode());
-        result = PRIME * result + this.sex;
-        return result;
-    }
-
-    /**
-     * @inheritDoc
-     */
-    public boolean equals(final Object obj) {
-        if ( this == obj ) {
-            return true;
-        }
-        if ( obj == null ) {
-            return false;
-        }
-        if ( getClass() != obj.getClass() ) {
-            return false;
-        }
-        final Person other = (Person) obj;
-        if ( this.age != other.age ) {
-            return false;
-        }
-        if ( this.alive != other.alive ) {
-            return false;
-        }
-        if ( this.name == null ) {
-            if ( other.name != null ) {
-                return false;
-            }
-        } else if ( !this.name.equals( other.name ) ) {
-            return false;
-        }
-        if ( this.sex != other.sex ) {
-            return false;
-        }
-        return true;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getBigDecimal()
-     */
-    public BigDecimal getBigDecimal() {
-        return this.bigDecimal;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#setBigDecimal(java.math.BigDecimal)
-     */
-    public void setBigDecimal(final BigDecimal bigDecimal) {
-        this.bigDecimal = bigDecimal;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#getBigInteger()
-     */
-    public BigInteger getBigInteger() {
-        return this.bigInteger;
-    }
-
-    /* (non-Javadoc)
-     * @see org.drools.PersonInterface#setBigInteger(java.math.BigInteger)
-     */
-    public void setBigInteger(final BigInteger bigInteger) {
-        this.bigInteger = bigInteger;
-    }
-
-    public void setLikes(final String likes) {
-        this.likes = likes;
-    }
-
-
-}
\ No newline at end of file




More information about the jboss-svn-commits mailing list