input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
parseWhitespaceAroundSeparator ( ) { final java . util . List < com . b2international . snowowl . core . request . SearchResourceRequest . Sort > expected = com . google . common . collect . ImmutableList . of ( com . b2international . snowowl . core . request . SearchResourceRequest . SortField . ascending ( "field1" ...
org . junit . Assert . assertEquals ( expected , actual )
testGood_LabelWithRussian ( ) { java . lang . String moscowString = "Москва" ; java . lang . String encodedLabel = com . matthewmitchell . peercoinj . uri . PeercoinURI . encodeURLString ( moscowString ) ; testObject = new com . matthewmitchell . peercoinj . uri . PeercoinURI ( com . matthewmitchell . peercoinj . param...
org . junit . Assert . assertEquals ( moscowString , testObject . getLabel ( ) )
testGeenOuwkiv ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0169 . voerRegelUit ( null , maakNieuweSituatie ( false ) , null , maakBestaandeBetrokkenen ( true , true ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
testGetLayerByNameWithColon ( ) { addNamespace ( ) ; addDataStore ( ) ; org . geoserver . catalog . FeatureTypeInfo ft = catalog . getFactory ( ) . createFeatureType ( ) ; ft . setEnabled ( true ) ; ft . setName ( "foo:bar" ) ; ft . setAbstract ( "ftAbstract" ) ; ft . setDescription ( "ftDescription" ) ; ft . setStore ...
org . junit . Assert . assertNotNull ( catalog . getLayerByName ( "foo:bar" ) )
hasPathElementsReturnsTrueIfItDoesWithJustASplat ( ) { org . bigtesting . routd . Route route = new org . bigtesting . routd . Route ( "/*" ) ; "<AssertPlaceHolder>" ; } hasPathElements ( ) { return ! ( allPathElements . isEmpty ( ) ) ; }
org . junit . Assert . assertTrue ( route . hasPathElements ( ) )
shouldConsiderAsNormalizedPathWithAllParentReferences ( ) { parent = path ( "../../../../.." ) ; path = new org . modeshape . jcr . value . basic . ChildPath ( parent , org . modeshape . jcr . value . Path . PARENT_SEGMENT ) ; "<AssertPlaceHolder>" ; } isNormalized ( ) { return true ; }
org . junit . Assert . assertThat ( path . isNormalized ( ) , org . hamcrest . core . Is . is ( true ) )
benzeneElementCount ( ) { int [ ] freq = org . openscience . cdk . renderer . generators . standard . StandardBondGenerator . RingBondOffsetComparator . countLightElements ( org . openscience . cdk . templates . TestMoleculeFactory . makeBenzene ( ) ) ; "<AssertPlaceHolder>" ; } makeBenzene ( ) { org . openscience . cd...
org . junit . Assert . assertThat ( freq [ 6 ] , org . hamcrest . CoreMatchers . is ( 6 ) )
testActivateMultipleTimes ( ) { serverPushActivationTracker . activate ( "id1" ) ; serverPushActivationTracker . activate ( "id2" ) ; "<AssertPlaceHolder>" ; } isActive ( ) { return this . equals ( editor . getActivePageInstance ( ) ) ; }
org . junit . Assert . assertTrue ( serverPushActivationTracker . isActive ( ) )
get_database ( ) { org . apache . hadoop . hive . metastore . api . Database database = new org . apache . hadoop . hive . metastore . api . Database ( ) ; database . setName ( com . hotels . bdp . waggledance . server . FederatedHMSHandlerTest . DB_P ) ; org . apache . hadoop . hive . metastore . api . Database outbou...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( outboundDB ) )
testPopulateNetInterfaceConfigurationWifi ( ) { org . eclipse . kura . core . net . NetworkConfiguration config = new org . eclipse . kura . core . net . NetworkConfiguration ( ) ; org . eclipse . kura . core . net . WifiInterfaceConfigImpl netInterfaceConfig = new org . eclipse . kura . core . net . WifiInterfaceConfi...
org . junit . Assert . assertEquals ( expected , netInterfaceConfig )
testGetConfWithNoLocation ( ) { java . lang . String name = "sparkJob.properties" ; java . lang . String defaultPath = "/" + name ; java . util . Properties properties = org . apache . griffin . core . util . PropertiesUtil . getConf ( name , defaultPath , null ) ; "<AssertPlaceHolder>" ; } getConf ( java . lang . Stri...
org . junit . Assert . assertNotNull ( properties )
shouldReturnTrueWhenCheckIfNegotiationProductAlreadyExists ( ) { given ( negotiationProductDD . find ( ) ) . willReturn ( searchCriteriaBuilder ) ; given ( searchCriteriaBuilder . add ( org . mockito . Mockito . any ( com . qcadoo . model . api . search . SearchCriterion . class ) ) ) . willReturn ( searchCriteriaBuild...
org . junit . Assert . assertTrue ( result )
testPomWithEntity ( ) { org . apache . ivy . core . module . descriptor . ModuleDescriptor md = org . apache . ivy . plugins . parser . m2 . PomModuleDescriptorParser . getInstance ( ) . parseDescriptor ( settings , getClass ( ) . getResource ( "test-entity.pom" ) , true ) ; "<AssertPlaceHolder>" ; } getResource ( java...
org . junit . Assert . assertNotNull ( md )
forLoop ( ) { org . eclipse . collections . api . bag . sorted . ImmutableSortedBag < java . lang . Integer > bag = this . classUnderTest ( ) ; for ( java . lang . Integer each : bag ) { "<AssertPlaceHolder>" ; } } classUnderTest ( ) { return SortedBags . immutable . empty ( ) ; }
org . junit . Assert . assertNotNull ( each )
nowEuropeLondon ( ) { org . joda . time . DateTime now = com . hotels . bdp . circustrain . core . conf . ExpressionParserFunctions . nowEuropeLondon ( ) ; "<AssertPlaceHolder>" ; } nowEuropeLondon ( ) { org . joda . time . DateTime now = com . hotels . bdp . circustrain . core . conf . ExpressionParserFunctions . nowE...
org . junit . Assert . assertThat ( now . getZone ( ) , org . hamcrest . CoreMatchers . is ( org . joda . time . DateTimeZone . forID ( "Europe/London" ) ) )
isConsistent_spent ( ) { com . google . bitcoin . core . Transaction tx = createFakeTx ( params , com . google . bitcoin . core . Utils . Utils . toNanoCoins ( 1 , 0 ) , myAddress ) ; com . google . bitcoin . core . Address someOtherGuy = new com . google . bitcoin . core . ECKey ( ) . toAddress ( params ) ; com . goog...
org . junit . Assert . assertTrue ( wallet . isConsistent ( ) )
testDefaultInvalidSourceValidResource1 ( ) { org . eclipse . ceylon . common . FileUtil . delete ( new java . io . File ( "build/test-modules" ) ) ; org . eclipse . ceylon . compiler . js . ToolModel < org . eclipse . ceylon . compiler . js . CeylonCompileJsTool > tool = pluginLoader . loadToolModel ( "compile-js" ) ; ...
org . junit . Assert . assertNotNull ( tool )
testPageCountRecordSize ( ) { long tx = server . getStorageManager ( ) . generateID ( ) ; server . getStorageManager ( ) . storePageCounter ( tx , 1 , 1 , 100 ) ; server . getStorageManager ( ) . commit ( tx ) ; server . getStorageManager ( ) . stop ( ) ; org . apache . activemq . artemis . core . persistence . impl . ...
org . junit . Assert . assertEquals ( 100 , encoding . getPersistentSize ( ) )
testConvertAll ( ) { java . lang . Long addressTypeId = 1L ; org . lnu . is . domain . address . type . AddressType addressType = new org . lnu . is . domain . address . type . AddressType ( ) ; addressType . setId ( addressTypeId ) ; java . lang . Long adminUnitId = 2L ; org . lnu . is . domain . admin . unit . AdminU...
org . junit . Assert . assertEquals ( expecteds , actuals )
testNullHttpRequest ( ) { org . webbitserver . stub . StubConnection target = new org . webbitserver . stub . StubConnection ( null ) ; "<AssertPlaceHolder>" ; } httpRequest ( ) { return httpRequest ; }
org . junit . Assert . assertEquals ( null , target . httpRequest ( ) )
convertToShortNull ( ) { java . lang . Character c = null ; java . lang . Short s = converter . toShort ( c ) ; "<AssertPlaceHolder>" ; } toShort ( java . lang . Long ) { if ( value == null ) { return null ; } if ( ( value > ( Short . MAX_VALUE ) ) || ( value < ( Short . MIN_VALUE ) ) ) { throw new io . atlasmap . api ...
org . junit . Assert . assertNull ( s )
shouldConsumeInCaseSensitiveMannerWithExpectedValuesWhenMatchingExactCase ( ) { makeCaseSensitive ( ) ; tokens . consume ( "Select" ) ; tokens . consume ( "all" ) ; tokens . consume ( "columns" ) ; tokens . consume ( "from" ) ; tokens . consume ( "this" ) ; tokens . consume ( "table" ) ; "<AssertPlaceHolder>" ; } hasNe...
org . junit . Assert . assertThat ( tokens . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
getUtcSecond ( ) { "<AssertPlaceHolder>" ; } getUtcSecond ( ) { return fUTCSecond ; }
org . junit . Assert . assertEquals ( 9 , msg . getUtcSecond ( ) )
testGetBottomLeftPoint ( ) { sh1 . setPosition ( 10.0 , 20.0 ) ; sh1 . setWidth ( 11.0 ) ; shape . addShape ( sh1 ) ; "<AssertPlaceHolder>" ; } getBottomLeftPoint ( ) { final double step = getPlottingStep ( ) ; final net . sf . latexdraw . model . api . shape . Point pos = getPosition ( ) ; final double plotMinX = getP...
org . junit . Assert . assertEquals ( sh1 . getBottomLeftPoint ( ) , shape . getBottomLeftPoint ( ) )
test_toString ( ) { com . hazelblast . client . impl . ProxyProviderImpl proxyProvider = new com . hazelblast . client . impl . ProxyProviderImpl ( ) ; com . hazelblast . client . impl . ProxyProviderImplTest . DummyRemoteService service = proxyProvider . getProxy ( com . hazelblast . client . impl . ProxyProviderImplT...
org . junit . Assert . assertNotNull ( s )
testMultiByte1 ( ) { org . teiid . core . util . InputStreamReader isr = new org . teiid . core . util . InputStreamReader ( new java . io . ByteArrayInputStream ( new byte [ ] { ( ( byte ) ( 80 ) ) , ( ( byte ) ( - 61 ) ) , ( ( byte ) ( - 70 ) ) , ( ( byte ) ( - 61 ) ) , ( ( byte ) ( - 70 ) ) , ( ( byte ) ( 80 ) ) , (...
org . junit . Assert . assertEquals ( 5 , count )
mergeTextDecorationFirstNullTest ( ) { java . lang . String firstValue = null ; java . lang . String secondValue = "strikethrough<sp>bold" ; java . lang . String expected = "strikethrough<sp>bold" ; java . lang . String actual = com . itextpdf . styledxmlparser . css . resolve . CssPropertyMerger . mergeTextDecoration ...
org . junit . Assert . assertEquals ( expected , actual )
build_singleMpSingleSupplierSubscription ( ) { givenSubscription ( "EUR" , org . oscm . billingservice . business . model . suppliershare . SupplierRevenueShareResultTest . MP1_ID , 1L , 10L , org . oscm . billingservice . business . model . suppliershare . SupplierRevenueShareResultTest . BD_500 , BigDecimal . ZERO , ...
org . junit . Assert . assertNotNull ( result )
getPatients_shouldNotGetPatientByNonexistingIdentifier_SignatureNo2 ( ) { java . util . List < org . openmrs . Patient > patients = dao . getPatients ( "xy-xy-xy" , 0 , 11 ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java . uti...
org . junit . Assert . assertEquals ( 0 , patients . size ( ) )
testDeadlock244044 ( ) { final org . netbeans . modules . search . ResultModel rm = org . netbeans . modules . search . SearchTestUtils . createResultModelWithSampleData ( false ) ; final org . netbeans . modules . search . ui . ResultsOutlineSupport [ ] ros = new org . netbeans . modules . search . ui . ResultsOutline...
org . junit . Assert . assertNotNull ( ros [ 0 ] )
test_post_baseline_install_and_status ( ) { boolean status = this . persistenceService . postBaselinePersistenceChangesRequired ( ) ; "<AssertPlaceHolder>" ; } postBaselinePersistenceChangesRequired ( ) { try { return persistenceService . postBaselinePersistenceChangesRequired ( ) ; } catch ( org . ikasan . setup . per...
org . junit . Assert . assertFalse ( status )
testGetMappingCount ( ) { org . openscience . cdk . interfaces . IReaction reaction = ( ( org . openscience . cdk . interfaces . IReaction ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IMapping mapping = reaction . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IMapping . cla...
org . junit . Assert . assertEquals ( 1 , reaction . getMappingCount ( ) )
testCloseWhenItIsNotOpened ( ) { final org . uberfire . client . workbench . docks . UberfireDock uberfireDock = mock ( org . uberfire . client . workbench . docks . UberfireDock . class ) ; dock . setOpened ( false ) ; doReturn ( uberfireDock ) . when ( dock ) . getUberfireDock ( ) ; dock . close ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertFalse ( dock . isOpened ( ) )
deleteHasCorrectUri ( ) { java . lang . String expectedUri = java . lang . String . format ( "Files(%s)" , encodedFileId ) ; com . microsoft . windowsazure . services . media . entityoperations . EntityDeleteOperation deleter = com . microsoft . windowsazure . services . media . models . AssetFile . delete ( exampleFil...
org . junit . Assert . assertEquals ( expectedUri , deleter . getUri ( ) )
shouldEchoServerSendTextFrameWithPayloadFragmentedEvenWhenNotUTF8Aligned ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; final java . util . List < java . nio . ByteBuffer > bufferList = new java . util . ArrayList ( ) ...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
compareDiffAtomicNumber ( ) { org . openscience . cdk . debug . DebugElement e1 = new org . openscience . cdk . debug . DebugElement ( new java . lang . String ( "H" ) , 1 ) ; org . openscience . cdk . debug . DebugElement e2 = new org . openscience . cdk . debug . DebugElement ( new java . lang . String ( "H" ) , 0 ) ...
org . junit . Assert . assertFalse ( e1 . compare ( e2 ) )
givenUsersExist_whenFindingUsersByName_thenUsersAreFound ( ) { com . baeldung . model . User user = new com . baeldung . model . User ( ) ; user . setName ( "Eric" ) ; user . setAge ( 45 ) ; mongoOps . insert ( user ) ; user = new com . baeldung . model . User ( ) ; user . setName ( "Antony" ) ; user . setAge ( 55 ) ; ...
org . junit . Assert . assertThat ( users . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testPlayerMoveInsideLockedIslandAsOp ( ) { org . bukkit . entity . Player player = mock ( org . bukkit . entity . Player . class ) ; when ( player . getUniqueId ( ) ) . thenReturn ( uuid ) ; when ( player . isOp ( ) ) . thenReturn ( true ) ; when ( im . hasIsland ( org . mockito . Mockito . any ( ) , org . mockito . Mo...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
givenLoggerWithAsyncConfig_whenLogToJsonFile_thanOK ( ) { org . apache . logging . log4j . Logger logger = org . apache . logging . log4j . LogManager . getLogger ( "ASYNC_JSON_FILE_APPENDER" ) ; final int count = 88 ; for ( int i = 0 ; i < count ; i ++ ) { logger . info ( "This<sp>is<sp>async<sp>JSON<sp>message<sp>#{}...
org . junit . Assert . assertTrue ( ( ( logEventsCount >= 0 ) && ( logEventsCount <= count ) ) )
testNoRefreshValuesNew ( ) { org . apache . cayenne . testdo . testmap . Artist a = context . newObject ( org . apache . cayenne . testdo . testmap . Artist . class ) ; a . setArtistName ( "X" ) ; context . commitChanges ( ) ; context . performGenericQuery ( new org . apache . cayenne . query . SQLTemplate ( org . apac...
org . junit . Assert . assertEquals ( "X" , a1 . getArtistName ( ) )
testCount ( ) { java . util . List < java . lang . String > ids = new java . util . ArrayList < java . lang . String > ( 3 ) ; com . ebay . cloud . cms . dal . entity . impl . BsonEntity entity1 = com . ebay . cloud . cms . dal . persistence . PersistenceServiceTest . newServiceInstance ( 3000 ) ; java . lang . String ...
org . junit . Assert . assertEquals ( 3 , count )
testExpression13 ( ) { java . lang . String expr = "2.5333333333^(0-1)" ; double expected = java . lang . Math . Math . pow ( 2.5333333333 , ( - 1 ) ) ; net . objecthunter . exp4j . Expression e = new net . objecthunter . exp4j . ExpressionBuilder ( expr ) . build ( ) ; "<AssertPlaceHolder>" ; } evaluate ( ) { final ne...
org . junit . Assert . assertTrue ( ( expected == ( e . evaluate ( ) ) ) )
testGetSupervisorHistory ( ) { java . util . Map < java . lang . String , java . util . List < org . apache . druid . indexing . overlord . supervisor . VersionedSupervisorSpec > > supervisorHistory = com . google . common . collect . ImmutableMap . of ( ) ; org . easymock . EasyMock . expect ( metadataSupervisorManage...
org . junit . Assert . assertEquals ( supervisorHistory , history )
addAndRemoveWithByteArrayWithCircular ( ) { com . cloudhopper . commons . util . ByteBuffer buffer = new com . cloudhopper . commons . util . ByteBuffer ( com . cloudhopper . commons . util . ByteBufferTest . TEST_BYTES1 . length ) ; buffer . add ( ( ( byte ) ( 0 ) ) ) ; buffer . add ( ( ( byte ) ( 0 ) ) ) ; buffer . r...
org . junit . Assert . assertArrayEquals ( com . cloudhopper . commons . util . ByteBufferTest . TEST_BYTES1 , tmp )
testValueOfAndValues ( ) { for ( org . pentaho . bigdata . api . hbase . mapping . Mapping . TupleMapping tupleMapping : Mapping . TupleMapping . values ( ) ) { "<AssertPlaceHolder>" ; } } values ( ) { return toMap ( ) . values ( ) ; }
org . junit . Assert . assertEquals ( tupleMapping , Mapping . TupleMapping . valueOf ( tupleMapping . name ( ) ) )
testGetData_returnsSetData ( ) { java . lang . Object object = new java . lang . Object ( ) ; display . setData ( object ) ; java . lang . Object result = display . getData ( ) ; "<AssertPlaceHolder>" ; } getData ( ) { return dataTable ; }
org . junit . Assert . assertSame ( object , result )
testExecute_1 ( ) { System . out . println ( "execute<sp>1" ) ; org . apache . jmeter . samplers . SampleResult previousResult = null ; org . apache . jmeter . samplers . Sampler currentSampler = null ; org . apache . jmeter . threads . JMeterContextService . getContext ( ) . getVariables ( ) . put ( "var_to_be_defined...
org . junit . Assert . assertEquals ( expResult , result )
shouldHandleLimitEqualToIterableLength ( ) { final java . util . List < java . lang . Integer > values = java . util . Arrays . asList ( 0 , 1 , 2 , 3 ) ; final int start = 0 ; final int end = 4 ; final boolean truncate = false ; final uk . gov . gchq . gaffer . commonutil . iterable . CloseableIterable < java . lang ....
org . junit . Assert . assertEquals ( values , com . google . common . collect . Lists . newArrayList ( equalValues ) )
testIsScriptlessSubProject ( ) { java . io . File build = root . newFile ( "build.gradle" ) ; java . io . File settings = root . newFile ( "settings.gradle" ) ; java . io . File module = root . newFolder ( "module" ) ; java . nio . file . Files . write ( settings . toPath ( ) , java . util . Arrays . asList ( "include<...
org . junit . Assert . assertTrue ( gf . isScriptlessSubProject ( ) )
testFromEbXML ( ) { org . openehealth . ipf . commons . ihe . xds . core . ebxml . EbXMLRetrieveImagingDocumentSetRequest ebXML = transformer . toEbXML ( request ) ; org . openehealth . ipf . commons . ihe . xds . core . requests . RetrieveImagingDocumentSet result = transformer . fromEbXML ( ebXML ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( request , result )
testInitialPropertiesAreEmpty ( ) { java . util . Map < java . lang . String , java . lang . Object > properties = application . getProperties ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return services . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , properties . size ( ) )
testProcessorNameShouldBeSet ( ) { final org . apache . nifi . util . TestStandardProcessorTestRunner . AddAttributeProcessor proc = new org . apache . nifi . util . TestStandardProcessorTestRunner . AddAttributeProcessor ( ) ; final org . apache . nifi . util . TestRunner runner = org . apache . nifi . util . TestRunn...
org . junit . Assert . assertEquals ( "TestName" , runner . getProcessContext ( ) . getName ( ) )
testLoadWithEmptyOsgiDevProperty ( ) { when ( bundleContext . getProperty ( "osgi.dev" ) ) . thenReturn ( "" ) ; java . util . Properties properties = loadDevProperties ( ) ; "<AssertPlaceHolder>" ; } loadDevProperties ( ) { com . codeaffine . osgi . testuite . internal . DevPropertiesLoader loader = new com . codeaffi...
org . junit . Assert . assertEquals ( 0 , properties . size ( ) )
testSameLengths ( ) { int empty = service . encrypt ( "" , 26 ) . length ( ) ; int alphabet = service . encrypt ( "abcdefghijklmnopqrstuvwxyz" , 26 ) . length ( ) ; "<AssertPlaceHolder>" ; } length ( ) { return url . length ( ) ; }
org . junit . Assert . assertEquals ( empty , alphabet )
handlesUnclosedFormattingElements ( ) { java . lang . String h = "<!doctype<sp>html>\n" 1 + ( ( ( "<p><b<sp>class=x><b<sp>class=x><b><b<sp>class=x><b<sp>class=x><b>X\n" + "<!doctype<sp>html>\n" 5 ) + "<!doctype<sp>html>\n" 8 ) + "<p></b></b></b></b></b></b>X" ) ; org . jsoup . nodes . Document doc = org . jsoup . Jsoup...
org . junit . Assert . assertEquals ( want , doc . html ( ) )
testLeaveAloneDisjointInsert2 ( ) { org . antlr . v4 . tool . LexerGrammar g = new org . antlr . v4 . tool . LexerGrammar ( ( "lexer<sp>grammar<sp>T;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; java . lang . String input = "abcc" ; org . antlr . v4 . runtime . LexerInterpreter ...
org . junit . Assert . assertEquals ( expecting , result )
queryInteger ( ) { int begin = 14 ; int end = 18 ; com . aerospike . client . query . Statement stmt = new com . aerospike . client . query . Statement ( ) ; stmt . setNamespace ( args . namespace ) ; stmt . setSetName ( args . set ) ; stmt . setBinNames ( com . aerospike . test . sync . query . TestQueryInteger . binN...
org . junit . Assert . assertEquals ( 5 , count )
search_array_java_with_list_contains_with_list_contains ( ) { java . lang . Integer [ ] vikQueensLosingSeasons = new java . lang . Integer [ ] { 1962 , 1967 , 1984 , 2011 , 1966 , 1963 , 1982 , 2001 , 1990 , 2002 , 2006 , 2010 , 1965 , 1972 , 1979 , 1981 , 1985 } ; boolean hadALosingSeason = java . util . Arrays . asLi...
org . junit . Assert . assertTrue ( hadALosingSeason )
testExpression23 ( ) { java . lang . String expr = "-2<sp>*33.34/(log(foo)^-2<sp>+<sp>14<sp>*6)<sp>-<sp>sin(foo)" ; double x = 1.334 ; double expected = ( ( ( - 2 ) * 33.34 ) / ( ( java . lang . Math . Math . pow ( java . lang . Math . Math . log ( x ) , ( - 2 ) ) ) + ( 14 * 6 ) ) ) - ( java . lang . Math . Math . sin ...
org . junit . Assert . assertTrue ( ( expected == ( e . evaluate ( ) ) ) )
testNegativeComponent2 ( ) { org . apache . commons . math3 . linear . RealMatrix m = org . apache . commons . math3 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { 1.23 , - 1.434343434343 , 1.63 } , new double [ ] { 2.46 , 2.46 , 2.66 } } ) ; java . lang . String expected = ( ( ( ( ( ...
org . junit . Assert . assertEquals ( expected , actual )
testLoadMpi_NonExistingFile ( ) { gov . hhs . fha . nhinc . mpilib . MpiDataSaverTest . deleteMockMpiFile ( ) ; gov . hhs . fha . nhinc . mpilib . MpiDataSaver mpiDataSaver = createMpiDataSaver ( ) ; gov . hhs . fha . nhinc . mpilib . Patients patientList = mpiDataSaver . loadMpi ( gov . hhs . fha . nhinc . mpilib . Mp...
org . junit . Assert . assertEquals ( 0 , patientList . size ( ) )
testGetPaymentInvalidPaymentValue ( ) { org . oscarehr . common . dao . BillingONPaymentDao paymentDao = ( ( org . oscarehr . common . dao . BillingONPaymentDao ) ( org . oscarehr . util . SpringUtils . getBean ( org . oscarehr . common . dao . BillingONPaymentDao . class ) ) ) ; org . oscarehr . common . model . Billi...
org . junit . Assert . assertEquals ( new java . math . BigDecimal ( "0.00" ) , payment )
testNewBond_IAtom_IAtom_IBond_Order ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IBond bond = builder . newInstance ( org . openscience . cdk . interfaces . IBond ....
org . junit . Assert . assertNotNull ( bond )
testJsonForString ( ) { "<AssertPlaceHolder>" ; } getJsonDatatypeFromDatatypeIri ( java . lang . String ) { switch ( datatypeIri ) { case org . wikidata . wdtk . datamodel . interfaces . DatatypeIdValue . DT_ITEM : return org . wikidata . wdtk . datamodel . implementation . DatatypeIdImpl . JSON_DT_ITEM ; case org . wi...
org . junit . Assert . assertEquals ( org . wikidata . wdtk . datamodel . implementation . DatatypeIdImpl . getJsonDatatypeFromDatatypeIri ( DatatypeIdImpl . DT_STRING ) , DatatypeIdImpl . JSON_DT_STRING )
testSerialization ( ) { org . jfree . chart . urls . TimeSeriesURLGenerator g1 = new org . jfree . chart . urls . TimeSeriesURLGenerator ( ) ; org . jfree . chart . urls . TimeSeriesURLGenerator g2 = ( ( org . jfree . chart . urls . TimeSeriesURLGenerator ) ( org . jfree . chart . TestUtils . serialised ( g1 ) ) ) ; "<...
org . junit . Assert . assertEquals ( g1 , g2 )
transformsCredentialsToPrincipals ( ) { java . lang . String response = queryWithValidCredentials ( true ) ; "<AssertPlaceHolder>" ; } queryWithValidCredentials ( boolean ) { return get ( com . bazaarvoice . auth . hmac . server . HmacAuthProviderTest . GOOD_API_KEY , authRequired ) ; }
org . junit . Assert . assertEquals ( com . bazaarvoice . auth . hmac . server . HmacAuthProviderTest . GOOD_API_KEY , response )
uploadDownload ( ) { io . datakernel . http . AsyncHttpClient client = io . datakernel . http . AsyncHttpClient . create ( io . datakernel . eventloop . Eventloop . getCurrentEventloop ( ) ) ; io . global . common . api . DiscoveryService discoveryService = io . global . common . discovery . HttpDiscoveryService . crea...
org . junit . Assert . assertEquals ( ( text1 + text2 ) , downloaded . asString ( io . global . fs . UTF_8 ) )
testFilterOutNegativeVal ( ) { com . jitlogic . zorka . core . test . spy . SpyProcessor proc = new com . jitlogic . zorka . core . test . spy . RegexFilterProcessor ( "E0" , "[a-z]+" , true ) ; record . put ( "E0" , "123" ) ; record . put ( ".STAGES" , ( ( ( java . lang . Integer ) ( record . get ( ".STAGES" ) ) ) | (...
org . junit . Assert . assertNotNull ( proc . process ( record ) )
renderConfluencePage_asciiDocWithSourceListing_returnsConfluencePageContentWithMacroWithNameCode ( ) { java . lang . String adocContent = "[source]\n" + ( ( "----\n" + "import<sp>java.util.List;\n" ) + "----" ) ; org . sahli . asciidoc . confluence . publisher . converter . AsciidocConfluencePage asciiDocConfluencePage...
org . junit . Assert . assertThat ( asciiDocConfluencePage . content ( ) , org . hamcrest . Matchers . is ( expectedContent ) )
testVirtualSetFlatIndexOnShowItem ( ) { tree = new org . eclipse . swt . widgets . Tree ( shell , org . eclipse . swt . SWT . VIRTUAL ) ; tree . setItemCount ( 100 ) ; tree . setSize ( 100 , 100 ) ; org . eclipse . swt . widgets . TreeItem item = tree . getItem ( 30 ) ; tree . showItem ( item ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( 30 , item . getFlatIndex ( ) )
testGrantViewDataRecordPermissionToSiteMember ( ) { com . liferay . data . engine . model . DEDataRecord expectedDEDataRecord = com . liferay . data . engine . service . test . DEDataEngineTestUtil . insertDEDataRecord ( _adminUser , _group , _deDataDefinitionService , _deDataRecordCollectionService ) ; com . liferay ....
org . junit . Assert . assertEquals ( expectedDEDataRecord , deDataRecord )
testNewMessageToSendReturnsNullText ( ) { org . apache . qpid . jms . provider . amqp . message . AmqpJmsTextMessageFacade amqpTextMessageFacade = createNewTextMessageFacade ( ) ; amqpTextMessageFacade . clearBody ( ) ; "<AssertPlaceHolder>" ; } getText ( ) { return facade . getText ( ) ; }
org . junit . Assert . assertNull ( amqpTextMessageFacade . getText ( ) )
setMeasurand_energyActiveExportInterval_measurandIsSet ( ) { java . lang . String measurand = "Energy.Active.Export.Interval" ; sampledValue . setMeasurand ( measurand ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( sampledValue . getMeasurand ( ) , org . hamcrest . CoreMatchers . equalTo ( measurand ) )
isInsert_true ( ) { final java . lang . String sparql = "PREFIX<sp>Sensor:<sp><http://example.com/Equipment.owl#><sp>" + ( ( ( ( ( ( ( ( "INSERT<sp>{<sp>" + "?subject<sp>Sensor:test2<sp>?newValue<sp>" ) + "}<sp>WHERE<sp>{" ) + "values<sp>(?oldValue<sp>?newValue)<sp>{" ) + "('testValue1'<sp>'newValue1')" ) + "('testValu...
org . junit . Assert . assertTrue ( org . apache . rya . api . utils . QueryInvestigator . isInsertWhere ( sparql ) )
testGetPath ( ) { java . lang . String path = "/path/to/Name" ; org . bff . javampd . file . MPDFile mpdFile = new org . bff . javampd . file . MPDFile ( path ) ; mpdFile . setPath ( path ) ; "<AssertPlaceHolder>" ; } getPath ( ) { return path ; }
org . junit . Assert . assertEquals ( path , mpdFile . getPath ( ) )
testCancelQuery_NegativeAck ( ) { final org . apache . drill . exec . proto . UserBitShared . QueryId mockQueryId = UserBitShared . QueryId . getDefaultInstance ( ) ; final org . apache . drill . exec . proto . GeneralRPCProtos . Ack mockResponse = org . apache . drill . exec . rpc . Acks . FAIL ; when ( org . apache ....
org . junit . Assert . assertEquals ( response , mockResponse )
canSortStrings ( ) { java . util . ArrayList < java . lang . String > actualNames = new java . util . ArrayList ( java . util . Arrays . asList ( "Johnson" , "Wilson" , "Wilkinson" , "Abraham" , "Dagobert" ) ) ; java . util . ArrayList < java . lang . String > expectedResult = new java . util . ArrayList ( java . util ...
org . junit . Assert . assertEquals ( expectedResult , actualNames )
retrievesMessageBodyReaderFromEmbeddedProviderBinderByTypeAndMediaTypeWhenRequiredMessageBodyReaderIsNotAvailableInApplicationProviderBinder ( ) { javax . ws . rs . ext . MessageBodyReader < java . lang . String > stringMessageBodyReader = mock ( javax . ws . rs . ext . MessageBodyReader . class ) ; when ( applicationP...
org . junit . Assert . assertSame ( stringMessageBodyReader , applicationProviders . getMessageBodyReader ( java . lang . String . class , null , null , org . everrest . core . impl . TEXT_PLAIN_TYPE ) )
testAllPublicAttributesAreSupported ( ) { java . util . Collection < com . liferay . adaptive . media . AMAttribute < ? , ? > > publicAMAttributes = java . util . Arrays . asList ( com . liferay . adaptive . media . AMAttribute . getConfigurationUuidAMAttribute ( ) , com . liferay . adaptive . media . AMAttribute . get...
org . junit . Assert . assertTrue ( allowedAMAttributes . containsAll ( publicAMAttributes ) )
testAfterUpdate ( ) { when ( cache . update ( any ( ) , any ( ) , any ( ) , any ( org . hibernate . cache . access . SoftLock . class ) ) ) . thenThrow ( new com . hazelcast . core . HazelcastException ( "expected<sp>exception" ) ) ; "<AssertPlaceHolder>" ; } afterUpdate ( java . lang . Object , java . lang . Object , ...
org . junit . Assert . assertFalse ( delegate . afterUpdate ( null , null , null , null , null ) )
getHeader ( ) { java . util . Map < java . lang . String , java . util . List < java . lang . String > > headers = com . google . common . collect . Maps . newHashMap ( ) ; headers . put ( org . apache . shindig . gadgets . http . HttpRequestTest . TEST_HEADER_KEY , java . util . Arrays . asList ( org . apache . shindi...
org . junit . Assert . assertEquals ( org . apache . shindig . gadgets . http . HttpRequestTest . TEST_HEADER_VALUE , request . getHeader ( org . apache . shindig . gadgets . http . HttpRequestTest . TEST_HEADER_KEY ) )
testTitle ( ) { org . oscm . app . common . ui . ConfigurationBean bean = getTestBean ( ) ; org . mockito . Mockito . when ( controllerAccess . getMessage ( org . mockito . Matchers . anyString ( ) , org . mockito . Matchers . eq ( "config_ui_title" ) ) ) . thenReturn ( "title" ) ; java . lang . String title = bean . g...
org . junit . Assert . assertEquals ( "title" , title )
getEffectiveMapq_should_be_0_for_unmapped_reads ( ) { htsjdk . samtools . SAMRecord r = withMapq ( 1 , Read ( 0 , 1 , "1M" ) ) [ 0 ] ; r . setReadUnmappedFlag ( true ) ; "<AssertPlaceHolder>" ; } getEffectiveMapq ( htsjdk . samtools . SAMRecord , double ) { if ( r . getReadUnmappedFlag ( ) ) return 0 ; java . lang . In...
org . junit . Assert . assertEquals ( 0 , au . edu . wehi . idsv . sam . SAMRecordUtil . getEffectiveMapq ( r , 1 ) , 0 )
testHasIndexHashKeyEqualConditionAnd_WhenConditionCriteriaIsEqualityOnAPropertyWhichIsAnIndexHashKeyButNotAHashKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexHashKeyProperty ( "name" ) ) . thenReturn ( true ) ; criteria . withPropertyEquals ( "name" , "some<sp>name" , java . lang . String ....
org . junit . Assert . assertTrue ( hasIndexHashKeyEqualCondition )
testInvalidImpersonation ( ) { org . apache . jackrabbit . oak . api . ContentSession cs = null ; try { createTestUser ( ) ; javax . jcr . SimpleCredentials sc = new javax . jcr . SimpleCredentials ( org . apache . jackrabbit . oak . security . authentication . user . LoginModuleImplTest . USER_ID , org . apache . jack...
org . junit . Assert . assertEquals ( org . apache . jackrabbit . oak . security . authentication . user . LoginModuleImplTest . USER_ID , authInfo . getUserID ( ) )
one_$this_value_comparison_returns_false_when_field_value_does_not_match_expression ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'field':'field6.$this.nf3','op':'<','rvalue':3.5}" ) ; com . redhat . lightblue . eval . QueryE...
org . junit . Assert . assertFalse ( ctx . getResult ( ) )
bareNegatedExpression ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Negate ( Property ( "foo" ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "!foo" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { return runtime . compile ( str ) ; }
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
canUseVariousScriptingLanguagesInScripAssertConstraint ( ) { javax . validation . Validator validator = javax . validation . Validation . byProvider ( org . hibernate . validator . HibernateValidator . class ) . configure ( ) . externalClassLoader ( getClass ( ) . getClassLoader ( ) ) . scriptEvaluatorFactory ( new org...
org . junit . Assert . assertEquals ( 0 , constraintViolations . size ( ) )
loadBillingInputList_asPreview ( ) { final long periodStart = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-03-01<sp>00:00:00" ) ; final long periodEnd = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-04-01<sp>00:00:00" ) ; final org . oscm . billingservice . service . List < org . oscm...
org . junit . Assert . assertEquals ( 4 , provider . getBillingInput ( ) . size ( ) )
testSerialization ( ) { org . jfree . chart . plot . RingPlot p1 = new org . jfree . chart . plot . RingPlot ( null ) ; java . awt . GradientPaint gp = new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . yellow , 3.0F , 4.0F , java . awt . Color . RED ) ; p1 . setSeparatorPaint ( gp ) ; org . jfree . ch...
org . junit . Assert . assertEquals ( p1 , p2 )
testExecuteNamesWithOrderOk ( ) { java . util . List < java . lang . String > packageNames = new java . util . ArrayList < java . lang . String > ( ) ; packageNames . add ( "de.crowdcode.kissmda.maven.plugin.withguice" ) ; java . util . List < java . lang . String > transformerNameWithOrders = new java . util . ArrayLi...
org . junit . Assert . assertTrue ( true )
findAges ( ) { java . util . List < java . lang . Integer > ages = studentDBService . findAges ( ) ; "<AssertPlaceHolder>" ; } findAges ( ) { java . util . List < java . lang . Integer > ages = studentDBService . findAges ( ) ; org . junit . Assert . assertThat ( ages . size ( ) , greaterThanOrEqualTo ( 3 ) ) ; }
org . junit . Assert . assertThat ( ages . size ( ) , greaterThanOrEqualTo ( 3 ) )
testRequestedQueueNull ( ) { com . cloudera . llama . thrift . TLlamaAMReservationRequest request = mockRequest ( null , true , "user" ) ; org . mockito . Mockito . when ( placementPolicy . assignAppToQueue ( org . mockito . Mockito . eq ( YarnConfiguration . DEFAULT_QUEUE_NAME ) , org . mockito . Mockito . anyString (...
org . junit . Assert . assertEquals ( "resolved" , queue )
testGetTitleFromCurrentPageWithWrongElementInfo ( ) { com . adobe . cq . wcm . core . components . models . Title title = getTitleUnderTest ( com . adobe . cq . wcm . core . components . internal . models . v1 . TitleImplTest . TITLE_WRONGTYPE ) ; "<AssertPlaceHolder>" ; com . adobe . cq . wcm . core . components . Uti...
org . junit . Assert . assertNull ( title . getType ( ) )
testGetChildrenLiteral ( ) { org . orbisgis . coremap . renderer . se . parameter . string . StringLiteral sl = new org . orbisgis . coremap . renderer . se . parameter . string . StringLiteral ( "youhou" ) ; "<AssertPlaceHolder>" ; } getChildren ( ) { java . util . List < org . orbisgis . coremap . renderer . se . Sym...
org . junit . Assert . assertTrue ( sl . getChildren ( ) . isEmpty ( ) )
testFindAll ( ) { java . util . List < org . sculptor . example . ejb . helloworld . milkyway . domain . Planet > planets = planetService . findAll ( getServiceContext ( ) ) ; "<AssertPlaceHolder>" ; } getServiceContext ( ) { return org . sculptor . framework . test . AppEngineTestHelper . getServiceContext ( ) ; }
org . junit . Assert . assertEquals ( 2 , planets . size ( ) )
testSerializationDeserialization ( ) { java . time . LocalDate date = java . time . LocalDate . now ( ) ; java . lang . String jsonDate = JsonUtilities . objectMapper . writeValueAsString ( date ) ; java . time . LocalDate deserializedDate = JsonUtilities . objectMapper . readValue ( jsonDate , java . time . LocalDate ...
org . junit . Assert . assertEquals ( date , deserializedDate )
updateManifestComment ( ) { java . io . InputStream stream = org . bitlet . wetorrent . MetafileTest . class . getResourceAsStream ( org . bitlet . wetorrent . MetafileTest . TEST_TORRENT_PATH ) ; org . bitlet . wetorrent . Metafile metafile = new org . bitlet . wetorrent . Metafile ( stream ) ; metafile . setComment (...
org . junit . Assert . assertEquals ( "foo" , metafile . getComment ( ) )
testConvertBlank ( ) { java . lang . Boolean result = underTest . convert ( "<sp>" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( ...
org . junit . Assert . assertNull ( result )
testUnionFollowingIntervals ( ) { System . out . println ( "Following<sp>Intervals" ) ; java . util . Collection < com . sun . btrace . util . Interval > intervals = java . util . Arrays . asList ( new com . sun . btrace . util . Interval ( 1 , 6 ) , new com . sun . btrace . util . Interval ( 7 , 10 ) , new com . sun ....
org . junit . Assert . assertEquals ( expResult , result )