@Test public void processDefaultSelectionEmpty() { SeSelection seSelection = createSeSelection(); AbstractDefaultSelectionsResponse defaultSelectionsResponse; List<SeResponse> seResponses = new ArrayList<SeResponse>(); defaultSelectionsResponse = new DefaultSelectionsResponse(seResponses); SelectionsResult selectionsResult = null; try { selectionsResult = seSelection.processDefaultSelection(defaultSelectionsResponse); } catch (KeypleException e) { Assert.fail("Exception raised: " + e.getMessage()); } Assert.assertFalse(selectionsResult.hasActiveSelection()); Assert.assertEquals(0, selectionsResult.getMatchingSelections().size()); }
public SelectionsResult processDefaultSelection( AbstractDefaultSelectionsResponse defaultSelectionsResponse) { if (defaultSelectionsResponse == null) { logger.error("defaultSelectionsResponse shouldn't be null in processSelection."); return null; } if (logger.isTraceEnabled()) { logger.trace( "Process default SELECTIONRESPONSE ({} response(s))", ((DefaultSelectionsResponse) defaultSelectionsResponse).getSelectionSeResponses().size()); } return processSelection(defaultSelectionsResponse); }
SeSelection { public SelectionsResult processDefaultSelection( AbstractDefaultSelectionsResponse defaultSelectionsResponse) { if (defaultSelectionsResponse == null) { logger.error("defaultSelectionsResponse shouldn't be null in processSelection."); return null; } if (logger.isTraceEnabled()) { logger.trace( "Process default SELECTIONRESPONSE ({} response(s))", ((DefaultSelectionsResponse) defaultSelectionsResponse).getSelectionSeResponses().size()); } return processSelection(defaultSelectionsResponse); } }
SeSelection { public SelectionsResult processDefaultSelection( AbstractDefaultSelectionsResponse defaultSelectionsResponse) { if (defaultSelectionsResponse == null) { logger.error("defaultSelectionsResponse shouldn't be null in processSelection."); return null; } if (logger.isTraceEnabled()) { logger.trace( "Process default SELECTIONRESPONSE ({} response(s))", ((DefaultSelectionsResponse) defaultSelectionsResponse).getSelectionSeResponses().size()); } return processSelection(defaultSelectionsResponse); } SeSelection(MultiSeRequestProcessing multiSeRequestProcessing);  SeSelection(); }
SeSelection { public SelectionsResult processDefaultSelection( AbstractDefaultSelectionsResponse defaultSelectionsResponse) { if (defaultSelectionsResponse == null) { logger.error("defaultSelectionsResponse shouldn't be null in processSelection."); return null; } if (logger.isTraceEnabled()) { logger.trace( "Process default SELECTIONRESPONSE ({} response(s))", ((DefaultSelectionsResponse) defaultSelectionsResponse).getSelectionSeResponses().size()); } return processSelection(defaultSelectionsResponse); } SeSelection(MultiSeRequestProcessing multiSeRequestProcessing);  SeSelection(); int prepareSelection(
      AbstractSeSelectionRequest<? extends AbstractApduCommandBuilder> seSelectionRequest); final void prepareReleaseSeChannel(); SelectionsResult processDefaultSelection(
      AbstractDefaultSelectionsResponse defaultSelectionsResponse); SelectionsResult processExplicitSelection(SeReader seReader); AbstractDefaultSelectionsRequest getSelectionOperation(); }
SeSelection { public SelectionsResult processDefaultSelection( AbstractDefaultSelectionsResponse defaultSelectionsResponse) { if (defaultSelectionsResponse == null) { logger.error("defaultSelectionsResponse shouldn't be null in processSelection."); return null; } if (logger.isTraceEnabled()) { logger.trace( "Process default SELECTIONRESPONSE ({} response(s))", ((DefaultSelectionsResponse) defaultSelectionsResponse).getSelectionSeResponses().size()); } return processSelection(defaultSelectionsResponse); } SeSelection(MultiSeRequestProcessing multiSeRequestProcessing);  SeSelection(); int prepareSelection(
      AbstractSeSelectionRequest<? extends AbstractApduCommandBuilder> seSelectionRequest); final void prepareReleaseSeChannel(); SelectionsResult processDefaultSelection(
      AbstractDefaultSelectionsResponse defaultSelectionsResponse); SelectionsResult processExplicitSelection(SeReader seReader); AbstractDefaultSelectionsRequest getSelectionOperation();  }