# Quelques Live Template IntelliJ pour Mockito

DevFeed: [Quelques Live Template IntelliJ pour Mockito](<https://devfeed.tech/articles/quelques-live-template-intellij-pour-mockito-26055.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/2011/10/21/quelques-live-template-intellij-pour-mockito/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2011-10-21T20:06:46Z

Content type: tutorial

Language: fr

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [Template](<https://devfeed.tech/topics/template.md>), [Code](<https://devfeed.tech/topics/code.md>), [ide](<https://devfeed.tech/topics/ide.md>), [test](<https://devfeed.tech/topics/test.md>), [Java](<https://devfeed.tech/topics/java.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>)

Tags: [bdd](<https://devfeed.tech/tags/bdd.md>), [code](<https://devfeed.tech/tags/code.md>), [ide](<https://devfeed.tech/tags/ide.md>), [intellij](<https://devfeed.tech/tags/intellij.md>), [java](<https://devfeed.tech/tags/java.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

This French developer article presents IntelliJ Live Templates created to reduce repetitive Mockito test code. It explains that abbreviations can expand into code fragments, describes context-specific template configuration for Java, and notes limitations in sharing or exporting the templates.

## Source excerpt

Hello, j'en avais un peu marre d'écrire régulièrement voire répétitivement dans mes tests les constructions mockito. Pour ça je me suis créé dans mon IDE favori, IntelliJ, ce qu'on appelle des Live Template. Ces templates permettent à partir d'une abréviation d'insérer des fragments de code. Ainsi par exemple :