All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carrotsearch.ant.tasks.junit4.events.AbstractEvent Maven / Gradle / Ivy

The newest version!
package com.carrotsearch.ant.tasks.junit4.events;

@SuppressWarnings("serial")
abstract class AbstractEvent implements IEvent {
  private final EventType type;

  public AbstractEvent(EventType type) {
    if (this.getClass() != type.eventClass) {
      throw new RuntimeException("Unmatched event type: "
          + type + ", class: " + this.getClass());
    }

    this.type = type;
  }
  
  @Override
  public EventType getType() {
    return type;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy