Package org.codehaus.aspectwerkz.definition.expression

Examples of org.codehaus.aspectwerkz.definition.expression.Expression.match()


            );

            assertTrue(root.match(classMetaData1, PointcutType.CALL));
            assertFalse(root.match(classMetaData1, methodMetaData1, PointcutType.CALL));
            assertTrue(root.match(classMetaData1, methodMetaData2, PointcutType.CALL));
            assertFalse(root.match(classMetaData1, methodMetaData3, PointcutType.CALL));
        }
        catch (Exception e) {
            fail(e.toString());
        }
    }
View Full Code Here


            );
            FieldMetaData fieldMetaData2 = ReflectionMetaDataMaker.createFieldMetaData(
                    ExpressionTest.class.getDeclaredField("m_type")
            );

            assertTrue(root.match(classMetaData1, PointcutType.SET));
            assertFalse(root.match(classMetaData2, PointcutType.SET));
            assertFalse(root.match(classMetaData1, fieldMetaData1, PointcutType.SET));
            assertTrue(root.match(classMetaData1, fieldMetaData2, PointcutType.SET));
        }
        catch (Exception e) {
View Full Code Here

            FieldMetaData fieldMetaData2 = ReflectionMetaDataMaker.createFieldMetaData(
                    ExpressionTest.class.getDeclaredField("m_type")
            );

            assertTrue(root.match(classMetaData1, PointcutType.SET));
            assertFalse(root.match(classMetaData2, PointcutType.SET));
            assertFalse(root.match(classMetaData1, fieldMetaData1, PointcutType.SET));
            assertTrue(root.match(classMetaData1, fieldMetaData2, PointcutType.SET));
        }
        catch (Exception e) {
            fail(e.toString());
View Full Code Here

                    ExpressionTest.class.getDeclaredField("m_type")
            );

            assertTrue(root.match(classMetaData1, PointcutType.SET));
            assertFalse(root.match(classMetaData2, PointcutType.SET));
            assertFalse(root.match(classMetaData1, fieldMetaData1, PointcutType.SET));
            assertTrue(root.match(classMetaData1, fieldMetaData2, PointcutType.SET));
        }
        catch (Exception e) {
            fail(e.toString());
        }
View Full Code Here

            );

            assertTrue(root.match(classMetaData1, PointcutType.SET));
            assertFalse(root.match(classMetaData2, PointcutType.SET));
            assertFalse(root.match(classMetaData1, fieldMetaData1, PointcutType.SET));
            assertTrue(root.match(classMetaData1, fieldMetaData2, PointcutType.SET));
        }
        catch (Exception e) {
            fail(e.toString());
        }
    }
View Full Code Here

            );
            FieldMetaData fieldMetaData2 = ReflectionMetaDataMaker.createFieldMetaData(
                    ExpressionTest.class.getDeclaredField("m_type")
            );

            assertTrue(root.match(classMetaData1, PointcutType.GET));
            assertFalse(root.match(classMetaData2, PointcutType.GET));
            assertFalse(root.match(classMetaData1, fieldMetaData1));
            assertTrue(root.match(classMetaData1, fieldMetaData2));
        }
        catch (Exception e) {
View Full Code Here

            FieldMetaData fieldMetaData2 = ReflectionMetaDataMaker.createFieldMetaData(
                    ExpressionTest.class.getDeclaredField("m_type")
            );

            assertTrue(root.match(classMetaData1, PointcutType.GET));
            assertFalse(root.match(classMetaData2, PointcutType.GET));
            assertFalse(root.match(classMetaData1, fieldMetaData1));
            assertTrue(root.match(classMetaData1, fieldMetaData2));
        }
        catch (Exception e) {
            fail(e.toString());
View Full Code Here

                    ExpressionTest.class.getDeclaredField("m_type")
            );

            assertTrue(root.match(classMetaData1, PointcutType.GET));
            assertFalse(root.match(classMetaData2, PointcutType.GET));
            assertFalse(root.match(classMetaData1, fieldMetaData1));
            assertTrue(root.match(classMetaData1, fieldMetaData2));
        }
        catch (Exception e) {
            fail(e.toString());
        }
View Full Code Here

            );

            assertTrue(root.match(classMetaData1, PointcutType.GET));
            assertFalse(root.match(classMetaData2, PointcutType.GET));
            assertFalse(root.match(classMetaData1, fieldMetaData1));
            assertTrue(root.match(classMetaData1, fieldMetaData2));
        }
        catch (Exception e) {
            fail(e.toString());
        }
    }
View Full Code Here

            MethodMetaData methodMetaData3 = ReflectionMetaDataMaker.createMethodMetaData(
                    ExpressionTest.class.getDeclaredMethod("suite", new Class[]{})
            );

            assertTrue(root.match(classMetaData1));
            assertTrue(rootAnonymous.match(classMetaData1));
            assertFalse(root.match(classMetaData1, methodMetaData1));
            assertFalse(rootAnonymous.match(classMetaData1, methodMetaData1));
            assertFalse(root.match(classMetaData2));
            assertFalse(rootAnonymous.match(classMetaData2));
            assertTrue(root.match(classMetaData1, methodMetaData2));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.