[
https://issues.apache.org/jira/browse/OOZIE-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Bacsko updated OOZIE-2698:
--------------------------------
Summary: OYA: Refactor LauncherAM to make it more testable (was: Refactor
LauncherAM to make it more testable)
> OYA: Refactor LauncherAM to make it more testable
> -------------------------------------------------
>
> Key: OOZIE-2698
> URL: https://issues.apache.org/jira/browse/OOZIE-2698
> Project: Oozie
> Issue Type: Sub-task
> Reporter: Peter Bacsko
> Assignee: Peter Bacsko
>
> We should refactor the code in LauncherAM.
> Current problems with the code:
> - everything is static, main codepath is only reachable from the {{main()}}
> method
> - dependencies should either be injected or generated by a factory (this is
> the most important part)
> - class is moderately long (730-740), some of its parts could possibly be
> extracted to other classes
> - order of private/protected/public methods
> In its current form, it's not easy to provide a good test coverage for this
> class. Refactor it so that we can write more thorough unit tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)