andrewsbrown | 0f36eee | 2015-05-07 01:37:48 +0100 | [diff] [blame] | 1 | /* |
| 2 | * jndn-mock |
| 3 | * Copyright (c) 2015, Intel Corporation. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms and conditions of the GNU Lesser General Public License, |
| 7 | * version 3, as published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope it will be useful, but WITHOUT ANY |
| 10 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 11 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for |
| 12 | * more details. |
| 13 | */ |
| 14 | package com.intel.jndn.mock; |
| 15 | |
| 16 | /** |
| 17 | * |
| 18 | * @author Andrew Brown <andrew.brown@intel.com> |
| 19 | */ |
| 20 | public class TestCounter { |
| 21 | |
| 22 | private int count = 0; |
| 23 | |
| 24 | public void inc() { |
| 25 | count++; |
| 26 | } |
| 27 | |
| 28 | public int get() { |
| 29 | return count; |
| 30 | } |
| 31 | } |