Back to project page BehatReporter.
The source code is released under:
Copyright (C) 2013 Fabian Kiss <headrevision@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
If you think the Android project BehatReporter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package headrevision.BehatReporter.report; /*from w w w .j a va 2 s.c om*/ import headrevision.BehatReporter.json.ParserException; import com.fasterxml.jackson.databind.JsonNode; public class StepOrOutlineExampleParserFactory extends ItemParserFactory { @Override public ItemParser getItemParser(JsonNode item) { StepParser stepParser = new StepParser(item); OutlineExampleParser outlineExampleParser = new OutlineExampleParser(item); try { if (stepParser.isStep()) { return stepParser; } else if (outlineExampleParser.isOutlineExample()) { return outlineExampleParser; } } catch (ParserException e) { } return null; } @Override public String getItemsKey() { throw(new UnsupportedOperationException()); } }