- fix package name

- update license header
pull/3/head
benas 11 years ago
parent 2a068a390a
commit a7c21a1ebe

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.api; package io.github.benas.easyrules.api;
/** /**
* Abstraction for a rule that can be fired by the rules engine.<br/> * Abstraction for a rule that can be fired by the rules engine.<br/>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.api; package io.github.benas.easyrules.api;
import java.util.Set; import java.util.Set;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/** /**
* This package contains main Easy Rules public API. * This package contains main Easy Rules public API.
*/ */
package io.github.easyrules.api; package io.github.benas.easyrules.api;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,9 +22,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.core; package io.github.benas.easyrules.core;
import io.github.easyrules.api.JmxManagedRule; import io.github.benas.easyrules.api.JmxManagedRule;
/** /**
* Basic class for JMX managed rules.<br/> * Basic class for JMX managed rules.<br/>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,10 +22,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.core; package io.github.benas.easyrules.core;
import io.github.easyrules.api.Rule; import io.github.benas.easyrules.api.Rule;
import io.github.easyrules.util.EasyRulesConstants; import io.github.benas.easyrules.util.EasyRulesConstants;
/** /**
* Basic rule implementation class that provide common methods.<br/> * Basic rule implementation class that provide common methods.<br/>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,10 +22,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.core; package io.github.benas.easyrules.core;
import io.github.easyrules.api.Rule; import io.github.benas.easyrules.api.Rule;
import io.github.easyrules.util.EasyRulesConstants; import io.github.benas.easyrules.util.EasyRulesConstants;
import java.util.Set; import java.util.Set;
import java.util.TreeSet; import java.util.TreeSet;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,12 +22,12 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.core; package io.github.benas.easyrules.core;
import io.github.easyrules.api.JmxManagedRule; import io.github.benas.easyrules.api.JmxManagedRule;
import io.github.easyrules.api.Rule; import io.github.benas.easyrules.api.Rule;
import io.github.easyrules.api.RulesEngine; import io.github.benas.easyrules.api.RulesEngine;
import io.github.easyrules.util.EasyRulesConstants; import io.github.benas.easyrules.util.EasyRulesConstants;
import javax.management.MBeanServer; import javax.management.MBeanServer;
import javax.management.ObjectName; import javax.management.ObjectName;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/** /**
* This package contains the core Easy Rules implementation. * This package contains the core Easy Rules implementation.
*/ */
package io.github.easyrules.core; package io.github.benas.easyrules.core;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.util; package io.github.benas.easyrules.util;
/** /**
* Easy Rules constants class. * Easy Rules constants class.

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -25,4 +25,4 @@
/** /**
* This package contains Easy Rules utility classes. * This package contains Easy Rules utility classes.
*/ */
package io.github.easyrules.util; package io.github.benas.easyrules.util;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,8 +22,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.core; package io.github.io.github.benas.easyrules.core;
import io.github.benas.easyrules.core.BasicRule;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.*; import static org.junit.Assert.*;
@ -45,13 +46,13 @@ public class RulePriorityComparisonTest {
@Test @Test
public void testDifferentRulePriorityComparison() { public void testDifferentRulePriorityComparison() {
assertEquals(-1,rule1.compareTo(rule2)); assertEquals(-1, rule1.compareTo(rule2));
} }
@Test @Test
public void testSameRulePriorityComparison() { public void testSameRulePriorityComparison() {
rule1.setPriority(2); rule1.setPriority(2);
assertEquals(0,rule1.compareTo(rule2)); assertEquals(0, rule1.compareTo(rule2));
} }
} }

@ -52,7 +52,7 @@
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version> <version>1.2.1</version>
<configuration> <configuration>
<mainClass>io.github.easyrules.samples.helloworld.HelloWorldSampleLauncher</mainClass> <mainClass>io.github.benas.easyrules.samples.helloworld.HelloWorldSampleLauncher</mainClass>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
@ -68,7 +68,7 @@
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version> <version>1.2.1</version>
<configuration> <configuration>
<mainClass>io.github.easyrules.samples.order.OrderSampleLauncher</mainClass> <mainClass>io.github.benas.easyrules.samples.order.OrderSampleLauncher</mainClass>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,9 +22,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.helloworld; package io.github.benas.easyrules.samples.helloworld;
import io.github.easyrules.core.BasicRule; import io.github.benas.easyrules.core.BasicRule;
/** /**
* Hello World rule class. * Hello World rule class.

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,10 +22,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.helloworld; package io.github.benas.easyrules.samples.helloworld;
import io.github.easyrules.api.RulesEngine; import io.github.benas.easyrules.api.RulesEngine;
import io.github.easyrules.core.DefaultRulesEngine; import io.github.benas.easyrules.core.DefaultRulesEngine;
import java.util.Scanner; import java.util.Scanner;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.order; package io.github.benas.easyrules.samples.order;
/** /**
* Customer java bean. * Customer java bean.

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.order; package io.github.benas.easyrules.samples.order;
/** /**
* Order java bean. * Order java bean.

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,10 +22,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.order; package io.github.benas.easyrules.samples.order;
import io.github.easyrules.api.RulesEngine; import io.github.benas.easyrules.api.RulesEngine;
import io.github.easyrules.core.DefaultRulesEngine; import io.github.benas.easyrules.core.DefaultRulesEngine;
/** /**
* Launcher class of the order sample. * Launcher class of the order sample.

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,9 +22,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.order; package io.github.benas.easyrules.samples.order;
import io.github.easyrules.api.JmxManagedRule; import io.github.benas.easyrules.api.JmxManagedRule;
import javax.management.MXBean; import javax.management.MXBean;

@ -1,7 +1,7 @@
/* /*
* The MIT License * The MIT License
* *
* Copyright (c) 2013, benas (md.benhassine@gmail.com) * Copyright (c) 2014, benas (md.benhassine@gmail.com)
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -22,9 +22,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package io.github.easyrules.samples.order; package io.github.benas.easyrules.samples.order;
import io.github.easyrules.core.BasicJmxManagedRule; import io.github.benas.easyrules.core.BasicJmxManagedRule;
/** /**
* Business rule class that defines suspect order rule. * Business rule class that defines suspect order rule.
Loading…
Cancel
Save