Coverage Report - org.jbehave.core.context.Context
 
Classes in this File Line Coverage Branch Coverage Complexity
Context
0%
0/9
N/A
1
 
 1  
 package org.jbehave.core.context;
 2  
 
 3  
 /**
 4  
  * Holds context-related information
 5  
  */
 6  0
 public class Context {
 7  
         
 8  0
         private ThreadLocal<String> currentStory = new ThreadLocal<String>();
 9  0
         private ThreadLocal<String> currentScenario = new ThreadLocal<String>();
 10  
 
 11  
     public String getCurrentStory() {
 12  0
                 return currentStory.get();
 13  
         }
 14  
 
 15  
         public void setCurrentStory(String currentStory) {
 16  0
                 this.currentStory.set(currentStory);
 17  0
         }
 18  
 
 19  
         public String getCurrentScenario() {
 20  0
                 return currentScenario.get();
 21  
         }
 22  
 
 23  
         public void setCurrentScenario(String currentScenario) {
 24  0
                 this.currentScenario.set(currentScenario);
 25  0
         }
 26  
 
 27  
 }