gherkin.pickles.PickleTag Java Examples
The following examples show how to use
gherkin.pickles.PickleTag.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MandatoryAspect.java From bdt with Apache License 2.0 | 6 votes |
/** * @param pjp ProceedingJoinPoint * @param pickle pickle * @throws Throwable exception */ @Around(value = "addMandatoryPointcutScenario(pickle)") public void aroundAddMandatoryPointcut(ProceedingJoinPoint pjp, PickleEvent pickle) throws Throwable { Runner runner = (Runner) pjp.getThis(); Class<?> sc = runner.getClass(); Method tt = sc.getDeclaredMethod("buildBackendWorlds"); tt.setAccessible(true); tt.invoke(runner); String scenarioName = pickle.pickle.getName(); List<PickleTag> pickleTagList = pickle.pickle.getTags(); List<String> tagList = new ArrayList<>(); for (PickleTag pt:pickleTagList) { tagList.add(pt.getName()); } boolean exec = manageTags(tagList); if (!exec) { logger.error("Feature will not be executed. Mandatory variables not defined."); } else { pjp.proceed(); } }
Example #2
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueNotDefined() throws Exception { System.clearProperty("HELLO"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=OK)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #3
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionSkipOrPositive5() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO=SECOND||SEEYOU||HELLO>FIRST||BYE<1.0.0-1.1.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #4
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationSkipValueSmallerThanArrayNegative1() throws Exception { System.setProperty("HELLO","FIRST"); System.setProperty("BYE","1.0.0-1.1.0"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO<SECOND,BYE<1.0.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #5
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueArrayMixNegative2() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","0.0.19"); System.setProperty("SEEYOU", "WAY"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND,SEEYOU,HELLO>FIRST,BYE<0.0.5)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #6
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationSkypValueArrayMixNegative2() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.setProperty("SEEYOU", "WAY"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO=SECOND,SEEYOU,HELLO>FIRST,BYE<0.0.19)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #7
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunAndNegative7() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND&&SEEYOU&&HELLO>SECOND&&BYE<1.0.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #8
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationSkipValueSmallerThanNegative1() throws Exception { System.setProperty("HELLO","SECOND"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO<FIRST)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #9
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunMixNegative10() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=FIRST&&SEEYOU||HELLO>FIRST&&BYE<0.0.19)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #10
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunAndNegative15() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=FIRST&&SEEYOU&&HELLO>SECOND&&BYE<1.0.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #11
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueArrayMix1() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND,BYE,HELLO>FIRST,BYE<1.0.0-1.1.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #12
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueGreatherThanNegative2() throws Exception { System.setProperty("HELLO","FIRST"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO>FIRST)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #13
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunOrPositive10() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=FIRST||BYE||HELLO>THIRD||BYE<1.0.0-1.1.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #14
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunAndNegative6() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND&&SEEYOU&&HELLO>FIRST&&BYE<1.0.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #15
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueSmallerThanNotDefined() throws Exception { System.clearProperty("HELLO"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO<OK)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #16
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionSkipAndNegative8() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO=FIRST&&SEEYOU&&HELLO>FIRST&&BYE<1.0.0-1.1.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #17
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationSkipValueSmallerThanArrayNegative3() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0-1.1.0"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO<FIRST,BYE<1.0.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #18
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionSkipOrPositive14() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO=FIRST||SEEYOU||HELLO>SECOND||BYE<1.0.0-1.1.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #19
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueArrayMixNegative8() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.setProperty("SEEYOU", "WAY"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=WAY,SEEYOU,HELLO>FIRST,BYE<1.0.0-1.1.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #20
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunAndNegative4() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND&&SEEYOU&&HELLO>FIRST&&BYE<1.0.0-1.1.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #21
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationSkipValueSmallerThan() throws Exception { System.setProperty("HELLO","FIRST"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO<SECOND)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #22
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationSkipValueGreatherThanNegative1() throws Exception { System.setProperty("HELLO","FIRST"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO>SECOND)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #23
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueArrayMixNegative6() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND,SEEYOU,HELLO>FIRST,BYE<1.0.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #24
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueGreatherThan() throws Exception { System.setProperty("HELLO","SECOND"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO>FIRST)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #25
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueArrayMixNegative11() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.setProperty("SEEYOU", "WAY"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=WAY,SEEYOU,HELLO>THRID,BYE<0.0.19)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #26
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionSkipMixPositive1() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.setProperty("SEEYOU","MAYBE"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO=SECOND&&SEEYOU||HELLO>FIRST&&BYE<1.0.0-1.1.0)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #27
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionRunAndNegative16() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.19.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(BYE<1.5.0&&HELLO=FIRST&&SEEYOU&&HELLO>SECOND)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #28
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagBooleanExpressionSkipAndNegative6() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.0.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@skipOnEnv(HELLO=SECOND&&SEEYOU&&HELLO>FIRST&&BYE<1.0.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #29
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueVersion() throws Exception { System.setProperty("VERSION","1.0.0-1.0.0-1.0.0"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(VERSION=1.0.0-1.0.0-1.0.0)")); assertThat(false).isEqualTo(runontag.tagsIteration(tagList,1)); }
Example #30
Source File: RunOnEnvTagAspectTest.java From bdt with Apache License 2.0 | 5 votes |
@Test public void testTagIterationRunValueArrayMixNegative18() throws Exception { System.setProperty("HELLO","SECOND"); System.setProperty("BYE","1.2.0"); System.clearProperty("SEEYOU"); List<PickleTag> tagList = new ArrayList<>(); tagList.add(new PickleTag(new PickleLocation(1,0),"@runOnEnv(HELLO=SECOND,BYE<1.0.0,SEEYOU,HELLO>SECOND)")); assertThat(true).isEqualTo(runontag.tagsIteration(tagList,1)); }