test_class.declarator: subscriptionMapper = new SubscriptionMapper()
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SubscriptionMapper subscriptionMapper = new SubscriptionMapper();
test_class.type: SubscriptionMapper
test_class.var_name: subscriptionMapper
test_class.declarator: defaultSubscription
test_class.modifier: private
test_class.original_string: private Subscription defaultSubscription;
test_class.type: Subscription
test_class.var_name: defaultSubscription
test_class.file: services/src/test/java/com/vsct/supervision/notification/model/SubscriptionMapperTest.java
test_class.identifier: SubscriptionMapperTest
test_case.body: @Test
      public void testMapNewSubscriptionTypeIsMailIdIsNull() throws Exception {
          Subscription subscription = this.defaultSubscription;
  
          assertNotNull(subscription.getId());
          subscription.setType(SubscriptionType.HIPCHAT);
  
          Subscription alarm = subscriptionMapper.mapNewSubscriptionFormToSeyren(subscription);
          assertNull(alarm.getId());
          assertEquals(SubscriptionType.EMAIL, subscription.getType());
      }
test_case.class_method_signature: SubscriptionMapperTest.testMapNewSubscriptionTypeIsMailIdIsNull()
test_case.full_signature: @Test public void testMapNewSubscriptionTypeIsMailIdIsNull()
test_case.identifier: testMapNewSubscriptionTypeIsMailIdIsNull
test_case.invocations: assertNotNull getId setType mapNewSubscriptionFormToSeyren assertNull getId assertEquals getType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMapNewSubscriptionTypeIsMailIdIsNull()
focal_class.declarator: DEFAULT_FROM_TIME = "0800"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_FROM_TIME = "0800";
focal_class.type: String
focal_class.var_name: DEFAULT_FROM_TIME
focal_class.declarator: DEFAULT_TO_TIME = "2000"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_TO_TIME = "2000";
focal_class.type: String
focal_class.var_name: DEFAULT_TO_TIME
focal_class.file: services/src/main/java/com/vsct/supervision/notification/model/SubscriptionMapper.java
focal_class.identifier: SubscriptionMapper
focal_class.class_method_signature: SubscriptionMapper.mapNewSubscriptionFormToSeyren(Subscription subscription)
focal_class.full_signature: public Subscription mapNewSubscriptionFormToSeyren(Subscription subscription)
focal_class.identifier: mapNewSubscriptionFormToSeyren
focal_class.modifiers: public
focal_class.parameters: (Subscription subscription)
focal_class.return: Subscription
focal_class.signature: Subscription mapNewSubscriptionFormToSeyren(Subscription subscription)
focal_class.class_method_signature: SubscriptionMapper.mapUpdateSubscriptionFormToSeyren(Subscription subscription)
focal_class.full_signature: public Subscription mapUpdateSubscriptionFormToSeyren(Subscription subscription)
focal_class.identifier: mapUpdateSubscriptionFormToSeyren
focal_class.modifiers: public
focal_class.parameters: (Subscription subscription)
focal_class.return: Subscription
focal_class.signature: Subscription mapUpdateSubscriptionFormToSeyren(Subscription subscription)
focal_class.class_method_signature: SubscriptionMapper.setDefaultFromToTimeIfEmptyOrNull(Subscription subscription)
focal_class.full_signature: private Subscription setDefaultFromToTimeIfEmptyOrNull(Subscription subscription)
focal_class.identifier: setDefaultFromToTimeIfEmptyOrNull
focal_class.modifiers: private
focal_class.parameters: (Subscription subscription)
focal_class.return: Subscription
focal_class.signature: Subscription setDefaultFromToTimeIfEmptyOrNull(Subscription subscription)
focal_method.body: public Subscription mapNewSubscriptionFormToSeyren(Subscription subscription) throws CerebroException {
  
          // Reset unwanted fields or enforced default values
          subscription.setId(null);
          subscription.setType(SubscriptionType.EMAIL);
  
          setDefaultFromToTimeIfEmptyOrNull(subscription);
  
          return subscription;
      }
focal_method.class_method_signature: SubscriptionMapper.mapNewSubscriptionFormToSeyren(Subscription subscription)
focal_method.full_signature: public Subscription mapNewSubscriptionFormToSeyren(Subscription subscription)
focal_method.identifier: mapNewSubscriptionFormToSeyren
focal_method.invocations: setId setType setDefaultFromToTimeIfEmptyOrNull
focal_method.modifiers: public
focal_method.parameters: (Subscription subscription)
focal_method.return: Subscription
focal_method.signature: Subscription mapNewSubscriptionFormToSeyren(Subscription subscription)