/*
@test
@bug 6738181
@library ../../../regtesthelpers
@build Sysout
@summary Toolkit.getAWTEventListeners returns empty array
@author andrei dmitriev: area=awt.headless
*/
/**
* In a headless mode add a listener for container events.
* Check if a single listener is still assigned to the Toolkit class.
*/
public class AWTListener {
};
}
throw new RuntimeException("Case 1. An empty array returned unexpectedly");
}
}
throw new RuntimeException("Case 2. An empty array returned unexpectedly");
}
}
}