[jboss-svn-commits] JBL Code SVN: r32698 - in labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools: testframework and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat May 1 02:17:46 EDT 2010


Author: diegoll
Date: 2010-05-01 02:17:45 -0400 (Sat, 01 May 2010)
New Revision: 32698

Added:
   labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheese.java
   labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheesery.java
   labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/OuterFact.java
   labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Person.java
   labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/testframework/MockWorkingMemory.java
Log:
[JBRULES-2499] test domain objects for successful compile from maven

Added: labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheese.java
===================================================================
--- labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheese.java	                        (rev 0)
+++ labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheese.java	2010-05-01 06:17:45 UTC (rev 32698)
@@ -0,0 +1,131 @@
+package org.drools;
+
+
+import java.io.Serializable;
+import java.util.Date;
+
+/*
+ * 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.
+ */
+
+public class Cheese
+    implements
+    Serializable {
+
+    public static final String STILTON = "stilton";
+
+    /**
+     *
+     */
+    private static final long serialVersionUID = 400L;
+    private String            type;
+    private int               price;
+    private int               oldPrice;
+    private Date              usedBy;
+    private double            doublePrice;
+
+    public Cheese() {
+
+    }
+
+    public Cheese(final String type) {
+        super();
+        this.type = type;
+        this.price = 0;
+    }
+
+    public Cheese(final String type,
+                  final int price) {
+        super();
+        this.type = type;
+        this.price = price;
+    }
+
+    public Cheese(final String type,
+                  final int price,
+                  final int oldPrice ) {
+        super();
+        this.type = type;
+        this.price = price;
+        this.oldPrice = oldPrice;
+    }
+
+    public int getPrice() {
+        return this.price;
+    }
+
+    public String getType() {
+        return this.type;
+    }
+
+    public void setType(final String type) {
+        this.type = type;
+    }
+
+    public void setPrice(final int price) {
+        this.price = price;
+    }
+
+    public String toString() {
+        return "Cheese( type='" + this.type + "', price=" + this.price + " )";
+    }
+
+    public int hashCode() {
+        final int PRIME = 31;
+        int result = 1;
+        result = PRIME * result + price;
+        result = PRIME * result + ((type == null) ? 0 : type.hashCode());
+        return result;
+    }
+
+    public boolean equals(Object obj) {
+        if ( this == obj ) return true;
+        if ( obj == null ) return false;
+        if ( getClass() != obj.getClass() ) return false;
+        final Cheese other = (Cheese) obj;
+        if ( price != other.price ) return false;
+        if ( type == null ) {
+            if ( other.type != null ) return false;
+        } else if ( !type.equals( other.type ) ) return false;
+        return true;
+    }
+
+    public int getOldPrice() {
+        return oldPrice;
+    }
+
+    public void setOldPrice(int oldPrice) {
+        this.oldPrice = oldPrice;
+    }
+
+    public Date getUsedBy() {
+        return usedBy;
+    }
+
+    public void setUsedBy(Date usedBy) {
+        this.usedBy = usedBy;
+    }
+
+    public synchronized double getDoublePrice() {
+        return doublePrice;
+    }
+
+    public synchronized void setDoublePrice(double doublePrice) {
+        this.doublePrice = doublePrice;
+    }
+
+
+
+}
\ No newline at end of file

Added: labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheesery.java
===================================================================
--- labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheesery.java	                        (rev 0)
+++ labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Cheesery.java	2010-05-01 06:17:45 UTC (rev 32698)
@@ -0,0 +1,166 @@
+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.Externalizable;
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import java.io.ObjectStreamException;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+public class Cheesery
+    implements
+    Serializable {
+    /**
+     *
+     */
+    private static final long serialVersionUID = 400L;
+    public final static int   MAKING_CHEESE    = 0;
+    public final static int   SELLING_CHEESE   = 1;
+
+    private List        cheeses          = new ArrayList();
+
+    private int               status;
+    private int               totalAmount;
+    private Maturity          maturity;
+
+    public List getCheeses() {
+        return this.cheeses;
+    }
+    public void setCheeses(List l) {
+        this.cheeses=l;
+    }
+
+    public void addCheese(final Cheese cheese) {
+        this.cheeses.add( cheese );
+        this.totalAmount += cheese.getPrice();
+    }
+
+    public void removeCheese(final Cheese cheese) {
+        this.cheeses.remove( cheese );
+        recalculateTotalAmount();
+    }
+
+    /**
+     * Used to check inline evals.
+     */
+    public boolean hasSomeFlavour(String flavour) {
+        return "zesty".equals(flavour);
+    }
+
+    private void recalculateTotalAmount() {
+        this.totalAmount = 0;
+        for( Iterator it = this.cheeses.iterator(); it.hasNext(); ) {
+            this.totalAmount += ((Cheese) it.next()).getPrice();
+        }
+    }
+
+    public void setStatus(final int status) {
+        this.status = status;
+    }
+
+    public int getStatus() {
+        return this.status;
+    }
+
+    public Maturity getMaturity() {
+        return this.maturity;
+    }
+
+    public void setMaturity(final Maturity maturity) {
+        this.maturity = maturity;
+    }
+
+    public int getTotalAmount() {
+        return this.totalAmount;
+    }
+
+    public void setTotalAmount(final int totalAmount) {
+        this.totalAmount = totalAmount;
+    }
+
+    public static class Maturity implements Externalizable {
+        public static final Maturity YOUNG = new Maturity( "young" );
+        public static final Maturity OLD   = new Maturity( "old" );
+
+        private String               age;
+
+        public Maturity() {
+        }       
+
+        public Maturity(final String age) {
+            this.age = age;
+        }
+
+        public boolean equals(Object obj) {
+            if (obj instanceof Maturity) {
+                return age == ((Maturity)obj).age || age != null && age.equals(((Maturity)obj).age);
+            }
+            return false;
+        }
+
+        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+            age = (String)in.readObject();
+        }
+
+        public void writeExternal(ObjectOutput out) throws IOException {
+            out.writeObject(age);
+        }
+
+        private Object readResolve() throws ObjectStreamException {
+            if ( "young".equals( this.age) ) {
+                return Maturity.YOUNG;
+            } else {
+                return Maturity.OLD;
+            }
+        }  
+        
+        public String toString() {
+            return "[Maturity age='" + this.age + "']";
+        }
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((cheeses == null) ? 0 : cheeses.hashCode());
+        result = prime * result + ((maturity == null) ? 0 : maturity.hashCode());
+        result = prime * result + status;
+        result = prime * result + totalAmount;
+        return result;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        else if (obj instanceof Cheesery) {
+            Cheesery    that    = (Cheesery)obj;
+            return cheeses.equals(that.cheeses) &&
+                   status == that.status &&
+                   totalAmount == that.totalAmount &&
+                   maturity == that.maturity || maturity != null && maturity.equals(that.maturity);
+        }
+        return false;
+    }
+}
\ No newline at end of file

Added: labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/OuterFact.java
===================================================================
--- labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/OuterFact.java	                        (rev 0)
+++ labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/OuterFact.java	2010-05-01 06:17:45 UTC (rev 32698)
@@ -0,0 +1,20 @@
+package org.drools;
+
+public class OuterFact {
+
+	private String name;
+	private Cheese innerFact;
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public Cheese getInnerFact() {
+		return innerFact;
+	}
+	public void setInnerFact(Cheese innerFact) {
+		this.innerFact = innerFact;
+	}
+
+}

Added: labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Person.java
===================================================================
--- labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Person.java	                        (rev 0)
+++ labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/Person.java	2010-05-01 06:17:45 UTC (rev 32698)
@@ -0,0 +1,283 @@
+package org.drools;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
+
+public class Person
+    implements
+    Serializable,
+    PersonInterface {
+    /**
+     *
+     */
+    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 boolean           happy;
+
+    private String            status;
+
+    private Cheese            cheese;
+
+    private List<Address>     addresses        = new ArrayList<Address>();
+
+    //    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+    //        name    = (String)in.readObject();
+    //        likes    = (String)in.readObject();
+    //        age     = in.readInt();
+    //        bigDecimal    = (BigDecimal)in.readObject();
+    //        bigInteger    = (BigInteger)in.readObject();
+    //        hair    = (String)in.readObject();
+    //        sex     = in.readChar();
+    //        alive   = in.readBoolean();
+    //        status    = (String)in.readObject();
+    //        cheese    = (Cheese)in.readObject();
+    //        addresses    = (List)in.readObject();
+    //    }
+    //
+    //    public void writeExternal(ObjectOutput out) throws IOException {
+    //        out.writeObject(name);
+    //        out.writeObject(likes);
+    //        out.writeObject(bigDecimal);
+    //        out.writeObject(bigInteger);
+    //        out.writeObject(hair);
+    //        out.writeChar(sex);
+    //        out.writeBoolean(alive);
+    //        out.writeObject(status);
+    //        out.writeObject(cheese);
+    //        out.writeObject(addresses);
+    //    }
+
+    public Person() {
+
+    }
+
+    public Person(String name,
+                  int age) {
+        super();
+        this.name = name;
+        this.age = age;
+    }
+
+    public Person(final String name) {
+        this( name,
+              "",
+              0 );
+    }
+
+    public List<Address> getAddresses() {
+        return addresses;
+    }
+
+    public void setAddresses(List<Address> addresses) {
+        this.addresses = addresses;
+    }
+
+    public void addAddress(Address address) {
+        this.addresses.add( address );
+    }
+
+    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;
+    }
+
+    public Cheese getCheese() {
+        return this.cheese;
+    }
+
+    public void setCheese(final Cheese cheese) {
+        this.cheese = cheese;
+    }
+
+    public boolean isHappy() {
+        return happy;
+    }
+
+    public void setHappy(boolean happy) {
+        this.happy = happy;
+    }
+
+}
\ No newline at end of file

Added: labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/testframework/MockWorkingMemory.java
===================================================================
--- labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/testframework/MockWorkingMemory.java	                        (rev 0)
+++ labs/jbossrules/branches/drools_repo_services_diega_baunax/drools-ide-common/src/test/java/org/drools/testframework/MockWorkingMemory.java	2010-05-01 06:17:45 UTC (rev 32698)
@@ -0,0 +1,643 @@
+package org.drools.testframework;
+
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.locks.Lock;
+
+import org.drools.Agenda;
+import org.drools.FactException;
+import org.drools.FactHandle;
+import org.drools.QueryResults;
+import org.drools.RuleBase;
+import org.drools.SessionConfiguration;
+import org.drools.WorkingMemoryEntryPoint;
+import org.drools.common.InternalFactHandle;
+import org.drools.common.InternalRuleBase;
+import org.drools.common.InternalWorkingMemory;
+import org.drools.common.NodeMemory;
+import org.drools.common.ObjectStore;
+import org.drools.common.ObjectTypeConfigurationRegistry;
+import org.drools.common.RuleBasePartitionId;
+import org.drools.common.TruthMaintenanceSystem;
+import org.drools.common.WorkingMemoryAction;
+import org.drools.concurrent.ExecutorService;
+import org.drools.event.AgendaEventListener;
+import org.drools.event.AgendaEventSupport;
+import org.drools.event.RuleBaseEventListener;
+import org.drools.event.RuleFlowEventListener;
+import org.drools.event.RuleFlowEventSupport;
+import org.drools.event.WorkingMemoryEventListener;
+import org.drools.event.WorkingMemoryEventSupport;
+import org.drools.process.instance.ProcessInstance;
+import org.drools.process.instance.ProcessInstanceManager;
+import org.drools.process.instance.WorkItemManager;
+import org.drools.process.instance.event.SignalManager;
+import org.drools.process.instance.timer.TimerManager;
+import org.drools.reteoo.LIANodePropagation;
+import org.drools.reteoo.ObjectTypeConf;
+import org.drools.reteoo.PartitionTaskManager;
+import org.drools.rule.EntryPoint;
+import org.drools.rule.Rule;
+import org.drools.rule.TimeMachine;
+import org.drools.runtime.Calendars;
+import org.drools.runtime.Environment;
+import org.drools.runtime.ExitPoint;
+import org.drools.runtime.KnowledgeRuntime;
+import org.drools.runtime.ObjectFilter;
+import org.drools.runtime.impl.ExecutionResultImpl;
+import org.drools.spi.Activation;
+import org.drools.spi.AgendaFilter;
+import org.drools.spi.AsyncExceptionHandler;
+import org.drools.spi.FactHandleFactory;
+import org.drools.spi.GlobalResolver;
+import org.drools.spi.PropagationContext;
+import org.drools.time.SessionClock;
+import org.drools.time.TimerService;
+import org.drools.type.DateFormats;
+
+public class MockWorkingMemory implements InternalWorkingMemory {
+                
+	List<Object> facts = new ArrayList<Object>();
+	AgendaEventListener agendaEventListener;
+	TimeMachine timeMachine = new TimeMachine();
+	Map<String, Object> globals = new HashMap<String, Object>();
+
+    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+        facts   = (List<Object>)in.readObject();
+        agendaEventListener   = (AgendaEventListener)in.readObject();
+        timeMachine   = (TimeMachine)in.readObject();
+        globals   = (Map<String, Object>)in.readObject();
+    }
+
+    public void writeExternal(ObjectOutput out) throws IOException {
+        out.writeObject(facts);
+        out.writeObject(agendaEventListener);
+        out.writeObject(timeMachine);
+        out.writeObject(globals);
+    }
+    
+    public Calendars getCalendars() {
+        return null;
+    }
+    
+	public Iterator iterateObjects() {
+		return this.facts.iterator();
+	}
+
+	public void setGlobal(String identifier, Object value) {
+		this.globals.put(identifier, value);
+
+	}
+
+	public void addEventListener(AgendaEventListener listener) {
+		this.agendaEventListener = listener;
+	}
+
+	public void setTimeMachine(TimeMachine tm) {
+		this.timeMachine = tm;
+
+	}
+
+    public void addLIANodePropagation(LIANodePropagation liaNodePropagation) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void clearNodeMemory(NodeMemory node) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void executeQueuedActions() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public ExecutorService getExecutorService() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public FactHandle getFactHandleByIdentity(Object object) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public FactHandleFactory getFactHandleFactory() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public int getId() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public InternalFactHandle getInitialFactHandle() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Lock getLock() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public long getNextPropagationIdCounter() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public Object getNodeMemory(NodeMemory node) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public ObjectStore getObjectStore() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public PartitionTaskManager getPartitionTaskManager(RuleBasePartitionId partitionId) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public ProcessInstanceManager getProcessInstanceManager() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public TimeMachine getTimeMachine() {
+		return this.timeMachine;
+    }
+
+    public TimerService getTimerService() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public TruthMaintenanceSystem getTruthMaintenanceSystem() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public boolean isSequential() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    public void queueWorkingMemoryAction(WorkingMemoryAction action) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void removeLogicalDependencies(Activation activation,
+                                          PropagationContext context,
+                                          Rule rule) throws FactException {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void removeProcessInstance(ProcessInstance processInstance) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void retract(FactHandle factHandle,
+                        boolean removeLogical,
+                        boolean updateEqualsMap,
+                        Rule rule,
+                        Activation activation) throws FactException {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setAgendaEventSupport(AgendaEventSupport agendaEventSupport) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setExecutorService(ExecutorService executor) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setId(int id) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setRuleBase(InternalRuleBase ruleBase) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setRuleFlowEventSupport(RuleFlowEventSupport ruleFlowEventSupport) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setWorkingMemoryEventSupport(WorkingMemoryEventSupport workingMemoryEventSupport) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void clearActivationGroup(String group) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void clearAgenda() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void clearAgendaGroup(String group) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void clearRuleFlowGroup(String group) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public int fireAllRules() throws FactException {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public int fireAllRules(AgendaFilter agendaFilter) throws FactException {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public int fireAllRules(int fireLimit) throws FactException {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public int fireAllRules(AgendaFilter agendaFilter,
+                            int fireLimit) throws FactException {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public Agenda getAgenda() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public FactHandle getFactHandle(Object object) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Object getGlobal(String identifier) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public GlobalResolver getGlobalResolver() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Object getObject(org.drools.runtime.rule.FactHandle handle) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public ProcessInstance getProcessInstance(long id) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Collection<ProcessInstance> getProcessInstances() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public QueryResults getQueryResults(String query) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public QueryResults getQueryResults(String query,
+                                        Object[] arguments) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public RuleBase getRuleBase() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public SessionClock getSessionClock() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public SignalManager getSignalManager() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public TimerManager getTimerManager() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public WorkItemManager getWorkItemManager() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String id) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void halt() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public Iterator< ? > iterateFactHandles() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Iterator< ? > iterateFactHandles(org.drools.runtime.ObjectFilter filter) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Iterator< ? > iterateObjects(org.drools.runtime.ObjectFilter filter) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void setAsyncExceptionHandler(AsyncExceptionHandler handler) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setFocus(String focus) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void setGlobalResolver(GlobalResolver globalResolver) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public ProcessInstance startProcess(String processId) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public ProcessInstance startProcess(String processId,
+                                        Map<String, Object> parameters) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void addEventListener(WorkingMemoryEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void addEventListener(RuleFlowEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public List getAgendaEventListeners() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public List getRuleFlowEventListeners() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public List getWorkingMemoryEventListeners() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void removeEventListener(WorkingMemoryEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void removeEventListener(AgendaEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void removeEventListener(RuleFlowEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void addEventListener(RuleBaseEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public List<RuleBaseEventListener> getRuleBaseEventListeners() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void removeEventListener(RuleBaseEventListener listener) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public FactHandle insert(Object object) throws FactException {
+		this.facts .add(object);
+		return new MockFactHandle(object.hashCode());
+    }
+
+    public FactHandle insert(Object object,
+                             boolean dynamic) throws FactException {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void modifyInsert(FactHandle factHandle,
+                             Object object) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void modifyRetract(FactHandle factHandle) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void retract(org.drools.runtime.rule.FactHandle handle) throws FactException {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void update(org.drools.runtime.rule.FactHandle handle,
+                       Object object) throws FactException {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public KnowledgeRuntime getKnowledgeRuntime() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void setKnowledgeRuntime(KnowledgeRuntime kruntime) {
+        // TODO Auto-generated method stub
+        
+    }
+
+	public Map<String, ExitPoint> getExitPoints() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+    public Environment getEnvironment() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+    
+    public SessionConfiguration getSessionConfiguration() {
+        // TODO Auto-generated method stub
+    	return null;
+    }
+
+    public Map<String, WorkingMemoryEntryPoint> getEntryPoints() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void endBatchExecution() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public ExecutionResultImpl getExecutionResult() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void startBatchExecution(ExecutionResultImpl results) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public Collection< Object > getObjects() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public Collection< Object > getObjects(ObjectFilter filter) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void endOperation() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public long getIdleTime() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public void startOperation() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public long getTimeToNextJob() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public void updateEntryPointsCache() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void activationFired() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void prepareToFireActivation() {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public String getEntryPointId() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public long getFactCount() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public long getTotalFactCount() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    public DateFormats getDateFormats() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public <T extends org.drools.runtime.rule.FactHandle> Collection<T> getFactHandles() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public <T extends org.drools.runtime.rule.FactHandle> Collection<T> getFactHandles(ObjectFilter filter) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public EntryPoint getEntryPoint() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void insert(InternalFactHandle handle,
+                       Object object,
+                       Rule rule,
+                       Activation activation,
+                       ObjectTypeConf typeConf) {
+        // TODO Auto-generated method stub
+        
+    }
+
+}



More information about the jboss-svn-commits mailing list