test_class.file: sdk-libs/halo-notifications/src/test/java/com/mobgen/halo/android/notifications/decorator/NotificationLedDecoratorTest.java
test_class.identifier: NotificationLedDecoratorTest
test_class.superclass: extends BaseNotificationDecoratorTest<NotificationLedDecorator>
test_case.body: @Test
      public void addLedColorTest() {
          final boolean[] marker = new boolean[1];
          Bundle bundle = BundleTestUtils.builder().putString("color", "#00000000").build();
          when(getBuilder().setLights(any(Integer.class), eq(NotificationLedDecorator.ON_TIME), eq(NotificationLedDecorator.OFF_TIME))).then(new Answer<Object>() {
              @Override
              public Object answer(InvocationOnMock invocation) throws Throwable {
                  Assert.assertEquals(0, invocation.getArguments()[0]); // Assert white
                  marker[0] = true;
                  return null;
              }
          });
          getDecorator().decorate(getBuilder(), bundle);
          Assert.assertTrue(marker[0]);
      }
test_case.class_method_signature: NotificationLedDecoratorTest.addLedColorTest()
test_case.full_signature: @Test public void addLedColorTest()
test_case.identifier: addLedColorTest
test_case.invocations: build putString builder then when setLights getBuilder any eq eq assertEquals getArguments decorate getDecorator getBuilder assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void addLedColorTest()
focal_class.declarator: ON_TIME = 1500
focal_class.modifier: protected static final
focal_class.original_string: protected static final int ON_TIME = 1500;
focal_class.type: int
focal_class.var_name: ON_TIME
focal_class.declarator: OFF_TIME = 4000
focal_class.modifier: protected static final
focal_class.original_string: protected static final int OFF_TIME = 4000;
focal_class.type: int
focal_class.var_name: OFF_TIME
focal_class.file: sdk-libs/halo-notifications/src/main/java/com/mobgen/halo/android/notifications/decorator/NotificationLedDecorator.java
focal_class.identifier: NotificationLedDecorator
focal_class.class_method_signature: NotificationLedDecorator.NotificationLedDecorator(HaloNotificationDecorator decorator)
focal_class.full_signature: public  NotificationLedDecorator(HaloNotificationDecorator decorator)
focal_class.identifier: NotificationLedDecorator
focal_class.modifiers: public
focal_class.parameters: (HaloNotificationDecorator decorator)
focal_class.signature:  NotificationLedDecorator(HaloNotificationDecorator decorator)
focal_class.class_method_signature: NotificationLedDecorator.decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_class.full_signature: @Override public NotificationCompat.Builder decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_class.identifier: decorate
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_class.return: NotificationCompat.Builder
focal_class.signature: NotificationCompat.Builder decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_class.superclass: extends HaloNotificationDecorator
focal_method.body: @Override
      public NotificationCompat.Builder decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle) {
          String color = bundle.getString("color");
          if (!TextUtils.isEmpty(color)) {
              builder.setLights(HaloUtils.getArgb(color), ON_TIME, OFF_TIME);
          }
          return chain(builder, bundle);
      }
focal_method.class_method_signature: NotificationLedDecorator.decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_method.full_signature: @Override public NotificationCompat.Builder decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_method.identifier: decorate
focal_method.invocations: getString isEmpty setLights getArgb chain
focal_method.modifiers: @Override public
focal_method.parameters: (@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)
focal_method.return: NotificationCompat.Builder
focal_method.signature: NotificationCompat.Builder decorate(@NonNull NotificationCompat.Builder builder, @NonNull Bundle bundle)