Is it technically possible to solo mine bitcoin using cpu without a pool? How? Ubuntu
For development it's often helpful to start both nodes in regression test mode (regtest mode). The developer has his own private blockchain and can choose when to create a new block. You can use bitcoin-cli -regtest generate 1 to generate a new block.

For more information see Developer Examples - Regtest Mode.