@Test public void testPriority() { PostProcessor<Object> postProcessor = new PostProcessor<Object>() { @Override public void process(Object bean, FixtureMap fixtureMap) { } }; assertEquals(PostProcessor.DEFAULT_PRIORITY, postProcessor.getPriority()); postProcessor = new PostProcessor<Object>(3) { @Override public void process(Object bean, FixtureMap fixtureMap) { } }; assertEquals(3, postProcessor.getPriority()); }
public int getPriority() { return this.priority; }
PostProcessor implements Comparable<PostProcessor<T>> { public int getPriority() { return this.priority; } }
PostProcessor implements Comparable<PostProcessor<T>> { public int getPriority() { return this.priority; } PostProcessor();  PostProcessor(int priority); }
PostProcessor implements Comparable<PostProcessor<T>> { public int getPriority() { return this.priority; } PostProcessor();  PostProcessor(int priority); abstract void process(T bean, FixtureMap fixtureMap); int getPriority(); Class<T> getTargetClass(); @Override int compareTo(PostProcessor o); }
PostProcessor implements Comparable<PostProcessor<T>> { public int getPriority() { return this.priority; } PostProcessor();  PostProcessor(int priority); abstract void process(T bean, FixtureMap fixtureMap); int getPriority(); Class<T> getTargetClass(); @Override int compareTo(PostProcessor o); final static int DEFAULT_PRIORITY; }