
Hello,
Testicular pain can be due to injury, infection (Epididymitis or Orchitis) or inflammation, testicular torsion( most common in young men), excessive
bicycle riding, hernia,varicocele or kidney or ureteric stones.Lab investigations like complete blood examination, urine examination, ultrasound lower abdomen and sometimes a urethral swab will help in diagnosis.
The symptom of painful nocturnal discharge points towards the possibilities of prostatitis.