Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

trubitsyn/idea-visiblefortesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idea-visiblefortesting Build Status Downloads Version

@VisibleForTesting annotation support for the IntelliJ platform.

Motivation

It's time-consuming to annotate existing non-public methods: you have to remove modifiers and type the annotation manually.

Now you don't have to: plugin will do that for you.

Supported annotation types

Prerequisites

The desired annotation type must be accessible in order for intention actions to be shown.

android.support.annotation

Annotation elements are available since Support Library 25.0.0 and won't be generated by the plugin when using older versions.

Features

Supported programming languages: Java, Kotlin. Please note: Java methods cannot be annotated from Kotlin and vice-versa yet.

Choose from multiple annotation types to import

Choose annotation type

Annotate method (or Kotlin function in a class, object or file)

android.support.annotation

Annotate method

com.google.common.annotations

Annotate method

Annotate Java or Kotlin class methods

android.support.annotation

Annotate class methods

com.google.common.annotations

Annotate class methods

Annotate Java method or Kotlin function from test

android.support.annotation

Annotate method from test

com.google.common.annotations

Annotate method from test

Building from source

  1. Clone repository
  2. Run ./gradlew buildPlugin
  3. You can find the plugin in build/distributions directory

LICENSE

Copyright 2017-2019 Nikola Trubitsyn

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.