Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9a4badb authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by Android Git Automerger
Browse files

am d915dcac: Layoutlib tests now check methods return value [DO NOT MERGE]

* commit 'd915dcac':
  Layoutlib tests now check methods return value [DO NOT MERGE]
parents bdd8fbf6 d915dcac
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -129,6 +129,15 @@ public class TestDelegates extends TestCase {
                                originalClass.getName()),
                        delegateMethod.getAnnotation(LayoutlibDelegate.class));

                // check the return type of the methods match.
                assertTrue(
                        String.format("Delegate method %1$s.%2$s does not match the corresponding " +
                                "framework method which returns %3$s",
                                delegateClass.getName(),
                                getMethodName(delegateMethod),
                                originalMethod.getReturnType().getName()),
                        delegateMethod.getReturnType() == originalMethod.getReturnType());

                // check that the method is static
                assertTrue(
                        String.format(